From 1f9af9966fd5be2aefd33ab99d1cb07b8415c3d1 Mon Sep 17 00:00:00 2001 From: Daniel Monroe Date: Thu, 8 May 2025 12:10:51 -0700 Subject: [PATCH] Simplify futility pruning term Passed simplification STC LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 49920 W: 12933 L: 12727 D: 24260 Ptnml(0-2): 141, 5865, 12752, 6051, 151 https://tests.stockfishchess.org/tests/view/681d01d33629b02d74b1756e Passed simplification LTC LLR: 2.96 (-2.94,2.94) <-1.75,0.25> Total: 68808 W: 17573 L: 17402 D: 33833 Ptnml(0-2): 23, 7343, 19511, 7494, 33 https://tests.stockfishchess.org/tests/view/681e33843629b02d74b176b1 closes https://github.com/official-stockfish/Stockfish/pull/6058 Bench: 2041086 --- src/search.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 45515555e..7c83cae24 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1077,9 +1077,8 @@ moves_loop: // When in check, search starts here lmrDepth += history / 3388; - Value futilityValue = - ss->staticEval + (bestMove ? 46 : 138) + 117 * lmrDepth - + 102 * (bestValue < ss->staticEval - 127 && ss->staticEval > alpha - 50); + Value futilityValue = ss->staticEval + (bestMove ? 46 : 138) + 117 * lmrDepth + + 102 * (ss->staticEval > alpha); // Futility pruning: parent node // (*Scaler): Generally, more frequent futility pruning