]> git.sesse.net Git - stockfish/commitdiff
Decrease depth for cutnodes with no tt move
authorMichael Chaly <Vizvezdenec@gmail.com>
Fri, 10 Sep 2021 08:38:50 +0000 (11:38 +0300)
committerStéphane Nicolet <cassio@free.fr>
Fri, 10 Sep 2021 09:50:43 +0000 (11:50 +0200)
By analogy to existing logic of decreasing depth for PvNodes w/o tt move
do the same for cutNodes.

Passed STC
https://tests.stockfishchess.org/tests/view/613abf5a689039fce12e1155
LLR: 2.94 (-2.94,2.94) <-0.50,2.50>
Total: 90336 W: 23108 L: 22804 D: 44424
Ptnml(0-2): 286, 10316, 23642, 10656, 268

Passed LTC
https://tests.stockfishchess.org/tests/view/613ae330689039fce12e1172
LLR: 2.94 (-2.94,2.94) <0.50,3.50>
Total: 37736 W: 9607 L: 9346 D: 18783
Ptnml(0-2): 21, 3917, 10730, 4180, 20

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

bench 5891181

src/search.cpp

index ed5dd6c2c7ad5aab3e39b26cb038833c3a6b58d2..a4b17d9de6ea565439d08fb87bbae1a7516acb87 100644 (file)
@@ -903,12 +903,17 @@ namespace {
          ss->ttPv = ttPv;
     }
 
-    // Step 10. If the position is not in TT, decrease depth by 2
+    // Step 10. If the position is not in TT, decrease depth by 2 or 1 depending on node type
     if (   PvNode
         && depth >= 6
         && !ttMove)
         depth -= 2;
 
+    if (   cutNode
+        && depth >= 9
+        && !ttMove)
+        depth--;
+
 moves_loop: // When in check, search starts here
 
     ttCapture = ttMove && pos.capture_or_promotion(ttMove);