]> git.sesse.net Git - stockfish/commitdiff
Assert enhancements in search
authorMarco Costalba <mcostalba@gmail.com>
Tue, 27 Dec 2011 00:00:44 +0000 (01:00 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Tue, 27 Dec 2011 00:04:00 +0000 (01:04 +0100)
Add the check that alpha < beta - 1 if and only if PvNode is true.
The current code would not flag PvNode and alpha == beta - 1. In
other words, the || is not an exclusive OR!.

Also sync assert conditions of search() and qsearch()

Suggested by Rein Halbersma.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found