Author: Omid David
Date: 15:34:29 05/31/02
The following is the code for typical AspWin search. In very rare cases it
happens that even after the re-search the value is out of the alpha-beta window.
In this case my program conducts a full window search -10000, 10000. Is there
any better way to deal with this problem?!
int AspWin(int estimate, int delta, int depth)
{
int alpha = estimate - delta;
int beta = estimate + delta;
int best;
best = negascout(alpha, beta, depth);
/* re-search */
if(best <= alpha)
best = AlphaBeta(-10000, beta, depth);
else if(best >= beta)
best = AlphaBeta(alpha, 10000, depth);
/* is there any better way to handle this very rare case? */
if(best >= beta || best <= alpha)
best = AlphaBeta(-10000, 10000, depth);
return best;
}
This page took 0.01 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.