]> git.sesse.net Git - stockfish/commitdiff
Tweak formula for pruning moves losing material
authorFauziAkram <fauzi.dabat@hotmail.com>
Sat, 5 Aug 2023 11:21:08 +0000 (14:21 +0300)
committerStéphane Nicolet <cassio@free.fr>
Sun, 6 Aug 2023 20:25:58 +0000 (22:25 +0200)
Simplify the "Prune moves with negative SEE" formula,
by removing one multiplication and subtraction operation.

Passed STC:
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 214272 W: 54596 L: 54572 D: 105104
Ptnml(0-2): 741, 25160, 55320, 25164, 751
https://tests.stockfishchess.org/tests/view/64c430d1dc56e1650abbdbf6

Passed LTC:
LLR: 2.95 (-2.94,2.94) <-1.75,0.25>
Total: 238380 W: 60600 L: 60601 D: 117179
Ptnml(0-2): 132, 26069, 66791, 26064, 134
https://tests.stockfishchess.org/tests/view/64c81f155b17f7c21c0cee2b

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

bench: 1655337

src/search.cpp

index 457580316694f238e42eb4b4763039dbbf1cef45..dc439ed00e5d3ca55439235e83c9581cefa8c48d 100644 (file)
@@ -1037,7 +1037,7 @@ moves_loop: // When in check, search starts here
               lmrDepth = std::max(lmrDepth, 0);
 
               // Prune moves with negative SEE (~4 Elo)
-              if (!pos.see_ge(move, Value(-27 * lmrDepth * lmrDepth - 16 * lmrDepth)))
+              if (!pos.see_ge(move, Value(-31 * lmrDepth * lmrDepth)))
                   continue;
           }
       }