Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: When time is up during search, what value must be returned?

Author: Matthias Gemuh

Date: 16:32:58 05/05/05

Go up one level in this thread


On May 05, 2005 at 17:29:31, Dan Honeycutt wrote:

>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.




OK. So with flag set at right position, return value can be anything as it
must be ignored at root, if invalid.

Matthias.



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.