]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Refine deeper post-lmr searches
[stockfish] / src / search.cpp
index 45fc1a7e2aadccc029dc4e3549df1a1fc7a09ae9..bc495c0e5ded6e0fdddf786774ab6283a55cc465 100644 (file)
@@ -1201,7 +1201,7 @@ moves_loop: // When in check, search starts here
           {
               // Adjust full depth search based on LMR results - if result
               // was good enough search deeper, if it was bad enough search shallower
-              const bool doDeeperSearch = value > (alpha + 58 + 12 * (newDepth - d));
+              const bool doDeeperSearch = value > (bestValue + 68 + 12 * (newDepth - d));
               const bool doEvenDeeperSearch = value > alpha + 588 && ss->doubleExtensions <= 5;
               const bool doShallowerSearch = value < bestValue + newDepth;