]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify pruning
[stockfish] / src / search.cpp
index 57f636535ba89ac192a87196494f748457da3993..1ffe1e97adb7291f532c1dce631adaad22f6a86c 100644 (file)
@@ -936,11 +936,7 @@ moves_loop: // When in check search starts from here
           }
           else if (depth < 7 * ONE_PLY && !extension)
           {
-              Value v = -Value(399 + 35 * depth / ONE_PLY * depth / ONE_PLY);
-
-              if (PvNode)
-                  v += beta - alpha - 1;
-
+              Value v = -Value(400 - 100 * PvNode + 35 * depth / ONE_PLY * depth / ONE_PLY);
               if (!pos.see_ge(move, v))
                   continue;
           }