Skip to content

Commit

Permalink
Fix an assert in search
Browse files Browse the repository at this point in the history
After recent patch 55a3e0a, we have
an assert searching on:

5rk1/4K1pp/8/5PPP/8/8/8/1R6 w - - 12 1

Assert is:

Assertion `-VALUE_INFINITE <= alpha && alpha < beta && beta <= VALUE_INFINITE' failed.

The patch fixes it.

bench: 8094100
  • Loading branch information
joergoster authored and mcostalba committed Jun 28, 2014
1 parent be341d2 commit d0b8856
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.cpp
Expand Up @@ -701,6 +701,7 @@ namespace {
&& abs(beta) < VALUE_KNOWN_WIN
&& ttMove != MOVE_NONE
&& ttValue != VALUE_NONE
&& abs(ttValue) < VALUE_KNOWN_WIN
&& !excludedMove // Recursive singular search is not allowed
&& (tte->bound() & BOUND_LOWER)
&& tte->depth() >= depth - 3 * ONE_PLY;
Expand Down

0 comments on commit d0b8856

Please sign in to comment.