Author: Uri Blass
Date: 18:16:11 07/25/04
I still do not know the reason for the bug in the time management against isichess when movei used about half of it's time for move 61 (time control was 2 hours/60 moves+ 30 minutes/rest of the game) I suspect that a possible reason for bugs in my time management may be that movei simply did not update the remaining moves immediatly before it started to ponder and the result is that it assumes wrong number of moves to the time control and wrong time when it starts to ponder(I know that it is assuming wrong time when it starts to ponder but usually it is not a big problem because the target time is nearly the same and it is changed as soon as movei get the time command from winboard). I am not sure if the problem was assuming wrong number of moves and movei is supposed to update the remaining number of moves after every make move but I think that it may be better simply to get rid of global varaibles like num_moves(number of moves to the next time control, num_moves_1(number of moves to the first time control),num_moves_2 number of moves to the second time control and. have some function with static local varaibles that movei is going to call when it needs the information. Note that I do not plan to get rid of the compliacated formula that I use to decide about time management but I plan to have function to calculate relevant data instead of updating it in many places when I may forget to update it. I basically try to calculate number of expected moves to finish the game or the next time control and use this information to decide about target time and I also use the time of the last iteration to decide if to do another iteration(I usually try to finish iteration in most cases with the idea that after finishing an iteration there is a smaller chance to change my mind when the main exception are cases when the program pondered enough time). I think that the main problem is not with the formulas but with global varaibles when I have global varaibles for number of moves to the next time control or the time for the next time control when it is better to have a special file with functions that update the time information in static local varaibles so I can use the information later when I call them again. What is your opinion? Uri
This page took 0.04 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.