Author: Thomas Mayer
Date: 10:53:06 06/12/03
Go up one level in this thread
Hi Russell,
> const int moves_left = 30;
>
> int GetTimeForMove () {
> int time = (time_left / moves_left) + increment;
> return time;
> }
as soon as time system gets a little bit more complicate (e.g. taking more time
in fail low conditions etc.) this will not work that good, how about:
const int moves_left = 30;
int GetTimeForMove () {
if (time_left>(increment*2)
time = (time_left / moves_left) + increment;
else time=(time_left/moves_left);
return time;
}
Greets, Thomas
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.