Skip to content

Commit

Permalink
Simplify futility margin in lmr for quiets.
Browse files Browse the repository at this point in the history
Replace the "low bestValue condition" with whether there is a best move.

Passed Simplification STC
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 102560 W: 26517 L: 26367 D: 49676
Ptnml(0-2): 328, 12223, 26036, 12357, 336
https://tests.stockfishchess.org/tests/view/679310e4ca18a2c66da02af8

Passed Simplification LTC
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 66942 W: 17130 L: 16953 D: 32859
Ptnml(0-2): 52, 7459, 18290, 7600, 70
https://tests.stockfishchess.org/tests/view/679459a3e96bfb672ad18ddf

closes #5820

Bench: 1438043
  • Loading branch information
Ergodice authored and vondele committed Jan 25, 2025
1 parent 1b31e26 commit 27e747d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1028,8 +1028,7 @@ Value Search::Worker::search(

lmrDepth += history / 3459;

Value futilityValue =
ss->staticEval + (bestValue < ss->staticEval - 47 ? 137 : 47) + 142 * lmrDepth;
Value futilityValue = ss->staticEval + (bestMove ? 47 : 137) + 142 * lmrDepth;

// Futility pruning: parent node
if (!ss->inCheck && lmrDepth < 12 && futilityValue <= alpha)
Expand Down

0 comments on commit 27e747d

Please sign in to comment.