]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Another simplification for SEE pruning
[stockfish] / src / search.cpp
index 57f636535ba89ac192a87196494f748457da3993..ec594d20a202a1f4619605ccae86289f375b4d41 100644 (file)
@@ -934,16 +934,10 @@ 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)
-          {
-              Value v = -Value(399 + 35 * depth / ONE_PLY * depth / ONE_PLY);
-
-              if (PvNode)
-                  v += beta - alpha - 1;
-
-              if (!pos.see_ge(move, v))
+          else if (    depth < 7 * ONE_PLY
+                   && !extension
+                   && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY)))
                   continue;
-          }
       }
 
       // Speculative prefetch as early as possible