Skip to content

Commit 27e747d

Browse files
daniel-monroevondele
authored andcommitted
Simplify futility margin in lmr for quiets.
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
1 parent 1b31e26 commit 27e747d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,8 +1028,7 @@ Value Search::Worker::search(
10281028

10291029
lmrDepth += history / 3459;
10301030

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

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

0 commit comments

Comments
 (0)