Computer Chess Club Archives


Search

Terms

Messages

Subject: Incorporating time controls in chess programs

Author: Sanjiv Karnataki

Date: 15:10:12 02/15/00


Hi All,

I am at the point where I am about to put time controls in my program and
thought I will ask the experts before trying to do it all.

a) determine the time available for the next move.

b) While time is unexpired, search. At expiry of time use the best move from the
last iteration. If the best move is a negative evaluation increase the time by
some factor.

That is the easy part.

a) How do you determine if you don't need to use all the time ? eg: after
iteration 10 the score is +20, would you save time by not looking further?

b) in case the time control is 40 moves in 120 minutes, it gives 3 minutes per
move. how do you determine what time control to use if the games is all moves in
xx minutes? How do you handle increments ?

Anything else that I should watch out for?

All help is appreciated as always, and yes I will do the moral and proper thing
by looking at what crafty does...but it is a complicated program and sometimes I
just find it easier to ask the question here ...

Thank you !

Sanjiv.



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.