Simplification: Futility pruning for captures

tested in final form as simplication

passed LTC:
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 113682 W: 29199 L: 29074 D: 55409
Ptnml(0-2): 68, 12359, 31859, 12490, 65
https://tests.stockfishchess.org/tests/view/688e85a17d68fe4f7f130e24

earlier test, equivalent:
passed STC:
LLR: 2.96 (-2.94,2.94) <0.00,2.00>
Total: 120224 W: 31621 L: 31176 D: 57427
Ptnml(0-2): 415, 14167, 30567, 14484, 479
https://tests.stockfishchess.org/tests/view/68888bdd7b562f5f7b732643

closes https://github.com/official-stockfish/Stockfish/pull/6209

Bench: 2661621
This commit is contained in:
Stockfisher69
2025-08-09 08:49:12 +02:00
committed by Joost VandeVondele
parent b177b7394a
commit 303fe9a164
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -233,6 +233,7 @@ Stefano Di Martino (StefanoD)
Steinar Gunderson (sesse) Steinar Gunderson (sesse)
Stéphane Nicolet (snicolet) Stéphane Nicolet (snicolet)
Stephen Touset (stouset) Stephen Touset (stouset)
Stockfisher69
Styx (styxdoto) Styx (styxdoto)
Syine Mineta (MinetaS) Syine Mineta (MinetaS)
Taras Vuk (TarasVuk) Taras Vuk (TarasVuk)
+4 -3
View File
@@ -1039,9 +1039,10 @@ moves_loop: // When in check, search starts here
// Futility pruning for captures // Futility pruning for captures
if (!givesCheck && lmrDepth < 7 && !ss->inCheck) if (!givesCheck && lmrDepth < 7 && !ss->inCheck)
{ {
Value futilityValue = ss->staticEval + 225 + 220 * lmrDepth
+ 275 * (move.to_sq() == prevSq) + PieceValue[capturedPiece] Value futilityValue = ss->staticEval + 232 + 224 * lmrDepth
+ 131 * captHist / 1024; + PieceValue[capturedPiece] + 131 * captHist / 1024;
if (futilityValue <= alpha) if (futilityValue <= alpha)
continue; continue;
} }