Author: Steve Maughan
Date: 08:28:40 09/19/01
Go up one level in this thread
>3. (this one may be new?) Cuts in the search if alpha or beta are in the mate >range, and the current ply is too deep. > >e.g.: > > // can't find better checkmates in more plies! > if( alpha >= evalCheckmate - ply ) > { >#ifdef DEBUG_SEARCH > WriteDebug( ply, _T("s %d / deep %d\n"), ply, alpha ); >#endif > return alpha; > } > else if( beta <= -evalCheckmate + ply ) > { >#ifdef DEBUG_SEARCH > WriteDebug( ply, _T("s %d / deep %d\n"), ply, beta ); >#endif > return beta; > } I do this and I thought I was the only one - probably the case with all of my unique stuff. I haven't seen it mentioned before in this forum. It's obvious really and can help to stop the tree exploding when there are 1000s of threats going on. Steve
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.