From a289ee389aef03e4e2028f26aa472d82b909a892 Mon Sep 17 00:00:00 2001 From: Shawn Xu Date: Sun, 24 Aug 2025 02:02:31 -0700 Subject: [PATCH] Simplify Capture Futility Pruning Passed Non-regression STC: LLR: 2.97 (-2.94,2.94) <-1.75,0.25> Total: 187904 W: 48639 L: 48583 D: 90682 Ptnml(0-2): 560, 22150, 48502, 22154, 586 https://tests.stockfishchess.org/tests/view/68aad56075da51a345a5a9e3 Passed Non-regression LTC: LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 94302 W: 24246 L: 24101 D: 45955 Ptnml(0-2): 44, 10274, 26371, 10417, 45 https://tests.stockfishchess.org/tests/view/68ab541975da51a345a5aacf closes https://github.com/official-stockfish/Stockfish/pull/6266 Bench: 2376717 --- src/search.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 01155e260..41f650e79 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1041,9 +1041,8 @@ moves_loop: // When in check, search starts here int captHist = captureHistory[movedPiece][move.to_sq()][type_of(capturedPiece)]; // Futility pruning for captures - if (!givesCheck && lmrDepth < 7 && !ss->inCheck) + if (!givesCheck && lmrDepth < 7) { - Value futilityValue = ss->staticEval + 231 + 211 * lmrDepth + PieceValue[capturedPiece] + 130 * captHist / 1024;