Explicitly use alpha+1 for beta in NonPV search (#939)
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 25 Dec 2016 09:34:48 +0000 (10:34 +0100)
committerMarco Costalba <mcostalba@users.noreply.github.com>
Sun, 25 Dec 2016 09:34:48 +0000 (10:34 +0100)
commitaf7412e58a4ce374b5035d9bb1e8c47a108ff352
treebcb717e734fe00dbbcc8fadd95e9df8f03c79d38
parent1ceaea701baaa79f378b0842ff0fb5d2a1f53ef7
Explicitly use alpha+1 for beta in NonPV search (#939)

Fixes the only exception, in razoring.

The code already does assert(PvNode || (alpha == beta - 1)), and it can be verified by studying the program flow that this is indeed the case, also for the modified line.

No functional change.
src/search.cpp