]> git.sesse.net Git - stockfish/commitdiff
Non-quiet pruning tweak
authorStefan Geschwentner <Stefan-Geschwentner@web.de>
Fri, 11 Nov 2016 08:46:31 +0000 (09:46 +0100)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 19 Nov 2016 07:37:52 +0000 (08:37 +0100)
Count in the difference of static evaluation
and alpha for pruning threshold.

STC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 16885 W: 3061 L: 2866 D: 10958

LTC:
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 33566 W: 4428 L: 4202 D: 24936

Bench: 5513149

src/search.cpp

index 6699991a8d5237932f0b98f10d42bce308f0a62c..a74e3f256833c576c4e11f19462367af32f91119 100644 (file)
@@ -944,10 +944,15 @@ moves_loop: // When in check search starts from here
                   && !pos.see_ge(move, Value(-35 * lmrDepth * lmrDepth)))
                   continue;
           }
-          else if (   depth < 7 * ONE_PLY
-                   && !extension
-                   && !pos.see_ge(move, Value(-35 * depth / ONE_PLY * depth / ONE_PLY)))
+          else if (depth < 7 * ONE_PLY && !extension)
+          {
+              Value v = Value(-35 * depth / ONE_PLY * depth / ONE_PLY);
+              if (ss->staticEval != VALUE_NONE)
+                  v += ss->staticEval - alpha - 200;
+
+              if (!pos.see_ge(move, v))
                   continue;
+          }
       }
 
       // Speculative prefetch as early as possible