Skip to content

Commit 56d5504

Browse files
locutus2snicolet
authored andcommitted
Tweak futility pruning
Exclude moves with a good history total from futility pruning. This adds a condition for quiet futility pruning: history total has to be low. STC: LLR: 2.94 (-2.94,2.94) {-1.00,3.00} Total: 20095 W: 4503 L: 4342 D: 11250 Ptnml(0-2): 362, 2380, 4422, 2486, 388 http://tests.stockfishchess.org/tests/view/5e0d7c5387585b1706b68370 LTC: LLR: 2.94 (-2.94,2.94) {0.00,2.00} Total: 53016 W: 8587 L: 8302 D: 36127 Ptnml(0-2): 353, 5397, 14751, 5545, 423 http://tests.stockfishchess.org/tests/view/5e0e30d062fb773bb7047e95 Closes #2472 Bench: 5215200
1 parent 83ecfa7 commit 56d5504

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/search.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1003,7 +1003,11 @@ namespace {
10031003
// Futility pruning: parent node (~2 Elo)
10041004
if ( lmrDepth < 6
10051005
&& !inCheck
1006-
&& ss->staticEval + 255 + 182 * lmrDepth <= alpha)
1006+
&& ss->staticEval + 255 + 182 * lmrDepth <= alpha
1007+
&& thisThread->mainHistory[us][from_to(move)]
1008+
+ (*contHist[0])[movedPiece][to_sq(move)]
1009+
+ (*contHist[1])[movedPiece][to_sq(move)]
1010+
+ (*contHist[3])[movedPiece][to_sq(move)] < 30000)
10071011
continue;
10081012

10091013
// Prune moves with negative SEE (~10 Elo)

0 commit comments

Comments
 (0)