From fa6c30af814fe91e6a6c2d1bcaa8d951e3724ae7 Mon Sep 17 00:00:00 2001 From: FauziAkram Date: Thu, 13 Feb 2025 14:47:19 +0300 Subject: [PATCH] FutilityValue formula tweak Passed STC: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 29600 W: 7979 L: 7662 D: 13959 Ptnml(0-2): 138, 3446, 7324, 3745, 147 https://tests.stockfishchess.org/tests/view/67ac7dff52879dfd14d7e7da Passed LTC: LLR: 2.95 (-2.94,2.94) <0.50,2.50> Total: 49662 W: 12850 L: 12502 D: 24310 Ptnml(0-2): 41, 5354, 13689, 5710, 37 https://tests.stockfishchess.org/tests/view/67acc1b252879dfd14d7e81d closes https://github.com/official-stockfish/Stockfish/pull/5879 Bench: 2581469 --- src/search.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/search.cpp b/src/search.cpp index cd90bbfd..67e28d3e 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1055,7 +1055,10 @@ moves_loop: // When in check, search starts here lmrDepth += history / 3576; - Value futilityValue = ss->staticEval + (bestMove ? 49 : 135) + 150 * lmrDepth; + Value futilityValue = ss->staticEval + (bestMove ? 49 : 143) + 116 * lmrDepth; + + if (bestValue < ss->staticEval - 150 && lmrDepth < 7) + futilityValue += 108; // Futility pruning: parent node if (!ss->inCheck && lmrDepth < 12 && futilityValue <= alpha)