]> git.sesse.net Git - stockfish/commitdiff
cutnode and movecount lmr extension simplification
authorcandirufish <38038147+candirufish@users.noreply.github.com>
Tue, 31 May 2022 19:52:04 +0000 (21:52 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 2 Jun 2022 05:44:22 +0000 (07:44 +0200)
Passed STC
https://tests.stockfishchess.org/tests/view/6294133cb0d5a7d1b780ece3
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 41072 W: 11052 L: 10908 D: 19112
Ptnml(0-2): 153, 4324, 11461, 4422, 176

Passed LTC
ltc: https://tests.stockfishchess.org/tests/view/62947ae6b0d5a7d1b780fe86
LLR: 2.94 (-2.94,2.94) <-2.25,0.25>
Total: 102736 W: 27509 L: 27459 D: 47768
Ptnml(0-2): 98, 9734, 31669, 9754, 113

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

Bench: 6410652

src/search.cpp

index 407cb7018639cbf5c02ffe1340e27faf205e8ee5..8ecdbc309053d5de52aadea392a589e5e109ac15 100644 (file)
@@ -1194,8 +1194,7 @@ moves_loop: // When in check, search starts here
           // deeper than the first move (this may lead to hidden double extensions).
           int deeper =   r >= -1                   ? 0
                        : moveCount <= 4            ? 2
-                       : PvNode                    ? 1
-                       : cutNode && moveCount <= 8 ? 1
+                       : PvNode || cutNode         ? 1
                        :                             0;
 
           Depth d = std::clamp(newDepth - r, 1, newDepth + deeper);