From 2e2d2778fcae019f8cf53acedd5cb7b5a44696fb Mon Sep 17 00:00:00 2001 From: Nonlinear2 <131959792+Nonlinear2@users.noreply.github.com> Date: Mon, 28 Jul 2025 09:07:29 +0200 Subject: [PATCH] increase futility value when capturing last moved piece Passed STC: LLR: 2.95 (-2.94,2.94) <0.00,2.00> Total: 204320 W: 53059 L: 52500 D: 98761 Ptnml(0-2): 551, 23874, 52778, 24379, 578 https://tests.stockfishchess.org/tests/view/688618ae966ed85face24976 Passed LTC: LLR: 2.94 (-2.94,2.94) <0.50,2.50> Total: 138582 W: 35748 L: 35225 D: 67609 Ptnml(0-2): 62, 14874, 38900, 15389, 66 https://tests.stockfishchess.org/tests/view/68862717966ed85face249f2 closes https://github.com/official-stockfish/Stockfish/pull/6190 Bench: 2894413 --- src/search.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 24ba1c018..c517fd496 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1040,8 +1040,9 @@ moves_loop: // When in check, search starts here // Futility pruning for captures if (!givesCheck && lmrDepth < 7 && !ss->inCheck) { - Value futilityValue = ss->staticEval + 222 + 216 * lmrDepth - + PieceValue[capturedPiece] + 131 * captHist / 1024; + Value futilityValue = ss->staticEval + 225 + 220 * lmrDepth + + 275 * (move.to_sq() == prevSq) + PieceValue[capturedPiece] + + 131 * captHist / 1024; if (futilityValue <= alpha) continue; }