Author: Tony Werten
Date: 21:27:14 08/31/04
Go up one level in this thread
On August 31, 2004 at 20:37:00, Rick Bischoff wrote: >Hello all, > >This question is about time management. But first, a little side note-- I am a >patzer and I scratch my head at the most obvious of tactics.. That being said, I >KNOW when captures are obvious recaptures-- > >My engine right now is using code based on the idea from TSCP to use "Time >Left/30" for every move-- mine is actually a little bit different, if it is >before move 10 use "Time Left/60", everything after that until move 60 use "Time >Left/30" and after move 60 use "Time Left/20"; But, unlike TSCP, I don't just >stop after this time is elapsed. If my score is less than the previous depth's >score by a certain amount (and I am not already winning by a rook or more), I >keep searching until I complete the current depth or I reach a maximum time per >move threshold. > >That is all just superflous though, because the engine WASTES time searching >when the recapture is obvious-- how can you describe such a concept in code? Search the first 1 or 2 iterations with alpha=-oo, beta=+oo Order the moves. If the first move is better than the 2nd by a certain amount and it captures the last moved piece and the last move was a capture then set a flag. Search normal way. If the flag is set and the bestmove didn't change and (spend time>allocated time div 3) then exit search. Tony
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.