]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Remove operators for color
[stockfish] / src / search.cpp
index 222be393be5c915834429b5302cfd5de164bf4fd..09df1ac2697989e9736ddf4c983c08d7407ce765 100644 (file)
@@ -1041,7 +1041,7 @@ moves_loop: // When in check, search starts from here
                   continue;
 
               // Prune moves with negative SEE (~10 Elo)
-              if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
+              if (!pos.see_ge(move, Value(-(31 - std::min(lmrDepth, 18)) * lmrDepth * lmrDepth)))
                   continue;
           }
           else if (  (!givesCheck || !extension)