From f9a6d4328654f31cca5414be988b1158e555e09b Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Thu, 6 Mar 2025 19:04:56 -0800 Subject: [PATCH] Simplify condition in futility pruning Passed STC LLR: 2.93 (-2.94,2.94) <-1.75,0.25> Total: 427040 W: 111061 L: 111271 D: 204708 Ptnml(0-2): 1709, 48524, 113171, 48500, 1616 https://tests.stockfishchess.org/tests/view/67af01d01a4c73ae1f930ea4 Passed rebased LTC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 28704 W: 7330 L: 7120 D: 14254 Ptnml(0-2): 8, 3000, 8138, 3186, 20 https://tests.stockfishchess.org/tests/view/67ca629a45214989aa0a123e closes https://github.com/official-stockfish/Stockfish/pull/5924 Bench: 2050046 --- src/search.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index bacd63c95..440cdc8e3 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1074,10 +1074,8 @@ moves_loop: // When in check, search starts here lmrDepth += history / 3593; - Value futilityValue = ss->staticEval + (bestMove ? 48 : 146) + 116 * lmrDepth; - - if (bestValue < ss->staticEval - 128 && lmrDepth < 8) - futilityValue += 103; + Value futilityValue = ss->staticEval + (bestMove ? 48 : 146) + 116 * lmrDepth + + 103 * (bestValue < ss->staticEval - 128); // Futility pruning: parent node // (*Scaler): Generally, more frequent futility pruning