]> git.sesse.net Git - stockfish/commitdiff
More Depth Reduction
authorcandirufish <38038147+candirufish@users.noreply.github.com>
Sun, 21 May 2023 22:14:55 +0000 (00:14 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Thu, 25 May 2023 18:35:13 +0000 (20:35 +0200)
Reduce more for depth > 3 and depth < 12

LTC: https://tests.stockfishchess.org/tests/view/646c5abbd1f14fd69a6f2fab
LLR: 2.95 (-2.94,2.94) <0.50,2.50>
Total: 197280 W: 53405 L: 52797 D: 91078
Ptnml(0-2): 62, 19025, 59886, 19577, 90

STC: https://tests.stockfishchess.org/tests/view/646bee71d1f14fd69a6f259d
LLR: 2.95 (-2.94,2.94) <0.00,2.00>
Total: 100832 W: 26861 L: 26466 D: 47505
Ptnml(0-2): 240, 10985, 27622, 11278, 291

https://github.com/official-stockfish/Stockfish/pull/4585

bench: 2276617

src/search.cpp

index f58def601382cb91aafca78f9ae3b89931a8591f..130855c19c945a705a5334f0b3ba3840df1a6d0c 100644 (file)
@@ -1317,10 +1317,11 @@ moves_loop: // When in check, search starts here
               else
               {
                   // Reduce other moves if we have found at least one score improvement (~1 Elo)
+                  // Reduce more for depth > 3 and depth < 12 (~1 Elo)
                   if (   depth > 1
                       && beta  <  14001
                       && value > -12754)
-                      depth -= 1;
+                      depth -= depth > 3 && depth < 12 ? 2 : 1;
 
                   assert(depth > 0);
                   alpha = value; // Update alpha! Always alpha < beta