From 04407e35d67959b2e9011aa6aff43e2bb632b189 Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Tue, 22 May 2018 07:21:57 +0200 Subject: [PATCH] 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 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.39.2