Permalink
Browse files

Disable use of aspiration window in known win positions

When we are hunting for mate, transposition table is filled in
with mate scores. Current implemenatation of aspiration search
can't cope with this very well.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
  • Loading branch information...
1 parent 46c0bdb commit 8acb1d7e4ddb9627ed3c2910f6c47f466b94ad90 @zamar zamar committed with Jun 17, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/search.cpp
View
@@ -657,7 +657,7 @@ namespace {
// Calculate dynamic search window based on previous iterations
Value alpha, beta;
- if (MultiPV == 1 && Iteration >= 6)
+ if (MultiPV == 1 && Iteration >= 6 && abs(IterationInfo[Iteration - 1].value) < VALUE_KNOWN_WIN)
{
int prevDelta1 = IterationInfo[Iteration - 1].speculatedValue - IterationInfo[Iteration - 2].speculatedValue;
int prevDelta2 = IterationInfo[Iteration - 2].speculatedValue - IterationInfo[Iteration - 3].speculatedValue;

0 comments on commit 8acb1d7

Please sign in to comment.