Author: Mike Byrne
Date: 22:27:36 08/06/02
I just created a new command "md" <move delay> that is NOT in the executable
emailed out earlier today.
This will be standard in all future modified crafty's - if you would like the
current executable 17.16 SE with this option. Please email me at
mfbyrne_pa@msn.com.
Regards,
Mike
Here is the code in option.c
/*
----------------------------------------------------------------
| |
| "md" <move delay> command sets a specific delay time in |
| seconds to force crafty to use more time with out additional |
| computing by the engine |
| |
----------------------------------------------------------------
*/
/*start code*/
else if (!strcmp("md",*args)) {
if (nargs < 2) {
printf("usage: md <time> (in seconds, no decimals\n");
return(1);
}
delay_time_limit=atoi(args[1])*100;
Print(4095,"move delay time set to %d seconds.\n",delay_time_limit/100.0);
}
/*end code*/
========================================================
and add this in interate.c right after :
"else average_nps=nodes_per_second;
}"
=========================================================
/*start code*/
if (delay_time_limit)
{
begin_delay_time=ReadClock(time_type);
end_delay_time=delay_time_limit+begin_delay_time;
TestTime:
test_delay_time=ReadClock(time_type);
if (test_delay_time<end_delay_time) goto TestTime;
}
/*end code*/
naturally you would to update data.c and data.h for the new variables:
begin_delay_time
end_delay_time
delay_time_limit
test_delay_time
Mike
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.