H.G.Muller wrote:I was indeed tempted to steal the TSCP code, but I am not sure how I should handle time control. This part of the protocol seems quite confusing. There are two clocks, and one of them measures the time that the computer is thinking, and the other starts running when the computer gives of the move and stops when a move is entered or one of the commands that stops the clock? And if I change colors by a black, white or go command, the clocks are not affected? (i.e. the clock that used to measure time for white might now measure time for black?)
How about setting the clock with the time or otime command? Should this be time used or time left??? Do the clocks count down? If I use the level or st command, does it affect the clocks, or are the clocks only affected by the new command, based on the last level or st command given before it, and do such commands have no effect on a game being in progress?
If the depth is limited by sd, should the engine still pay attention to time?
I do not understand part of your questions
You say:
1)There are two clocks, and one of them measures the time that the computer is thinking, and the other starts running when the computer gives of the move and stops when a move is entered or one of the commands that stops the clock?
***What is exactly the question here?
2)And if I change colors by a
black,
white or
go command, the clocks are not affected? (i.e. the clock that used to measure time for white might now measure time for black?)
***Again I do not understand why you need to care about it.
basically winboard give you the time that you have before every move by time and the time that your opponent has by otime so I think that you have all the details
3)How about setting the clock with the
time or
otime command? Should this be time used or time left???
***time and otime are time left.
4)Do the clocks count down?
***I do not understand the question
5)If I use the
level or
st command, does it affect the clocks, or are the clocks only affected by the
new command, based on the last
level or
st command given before it, and do such commands have no effect on a game being in progress?
***usually you should get the level command only at the beginning of the game. The new command tell you that there is a new game and other commands later will tell you about the clock.
no reason for level command before new
6)If the depth is limited by
sd, should the engine still pay attention to time?[/quote]
***Yes
If you want it not to do it you can practically use long time control
that is going to achieve the same effect.