Author: Dan Honeycutt
Date: 14:29:31 05/05/05
Go up one level in this thread
On May 05, 2005 at 16:22:27, Kevin K wrote: >Do you return 0 or alpha when time is up during search? >If 0 must be returned, why? >If alpha must be returned, why? > >Thanks. If you abort the search due to time elapsing I recommend you set a flag. The score you return doesn't matter (you don't have a score till you back up to the root). Your search should check that flag before checking to see if the score returned is above alpha/beta. If the flag is set then it returns immediately, etc. till you spool back to the root. The move, score, and PV are all the best you got before the abort. Regards Dan H.
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.