Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: A question about clock and time management

Author: Andrew Platt

Date: 18:26:19 09/04/04

Go up one level in this thread


On September 04, 2004 at 20:12:52, Alessandro Scotti wrote:

>I apologize for the lame question but never played with clock so... what happens
>to the clock at a time control? Should I subtract the amount of time in the
>control (sort of wrapping around) or just let it go on so that time always
>accumulates?
>Also when a user retracts a move with "undo" or "remove" in the Winboard
>protocol,   what happens to the clock and time management "move index"... are
>they updated too ?

If you have a Winboard engine then you get this information with 'time' and
don't really have to worry about it yourself. It will get updated with the
correct time as moves are made / undone so all you need to be concerned with is
the number of moves that remain or potential remain till the time control.

From the Winboard spec:

"time N
Set a clock that always belongs to the engine. N is a number in centiseconds
(units of 1/100 second). Even if the engine changes to playing the opposite
color, this clock remains with the engine."

So basically you get 100ths of seconds which you can then divide by the number
of moves estimated to remain to get your basic per-move measurement which you
then use depending on whatever algorithm you choose.

I guess that UCI has a similar mechanism.

Andy.



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.