From a37b38bdf0ad964363a7fef4b278ccc761a52c52 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Sat, 2 Aug 2025 14:27:51 +0300 Subject: [PATCH] Add "d < newDepth" condition for doDeeperSearch Add "d < newDepth" condition for doDeeperSearch Passed STC: LLR: 2.97 (-2.94,2.94) <0.00,2.00> Total: 66144 W: 17512 L: 17148 D: 31484 Ptnml(0-2): 220, 7726, 16833, 8056, 237 https://tests.stockfishchess.org/tests/view/6887cce67b562f5f7b731a79 Passed LTC: LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 411240 W: 106103 L: 105023 D: 200114 Ptnml(0-2): 256, 44249, 115566, 45257, 292 https://tests.stockfishchess.org/tests/view/6887ec527b562f5f7b731c37 closes https://github.com/official-stockfish/Stockfish/pull/6204 Bench: 2917036 --- src/search.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index e151cc796..baf6dfb62 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1233,7 +1233,7 @@ moves_loop: // When in check, search starts here { // Adjust full-depth search based on LMR results - if the result was // good enough search deeper, if it was bad enough search shallower. - const bool doDeeperSearch = value > (bestValue + 43 + 2 * newDepth); + const bool doDeeperSearch = d < newDepth && value > (bestValue + 43 + 2 * newDepth); const bool doShallowerSearch = value < bestValue + 9; newDepth += doDeeperSearch - doShallowerSearch;