From: VoyagerOne Date: Tue, 22 May 2018 05:21:57 +0000 (+0200) Subject: Simply reset StatScore to zero at beta cutoff X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=04407e35d67959b2e9011aa6aff43e2bb632b189 Simply reset StatScore to zero at beta cutoff STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 43154 W: 8706 L: 8625 D: 25823 http://tests.stockfishchess.org/tests/view/5b01a7660ebc5914abc1271d LTC: LLR: 2.95 (-2.94,2.94) [-3.00,1.00] Total: 48155 W: 7036 L: 6955 D: 34164 http://tests.stockfishchess.org/tests/view/5b01b2e50ebc5914abc1272c Closes https://github.com/official-stockfish/Stockfish/pull/1608 Bench: 4484288 --- diff --git a/src/search.cpp b/src/search.cpp index 025c1141..5fd016a6 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1117,7 +1117,7 @@ moves_loop: // When in check, search starts from here else { assert(value >= beta); // Fail high - ss->statScore = std::max(ss->statScore, 0); + ss->statScore = 0; break; } }