]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Research at intermediate depth if LMR is very high
[stockfish] / src / search.cpp
index 6aa1081f435e0cd666dc8ba3ba0dfcfdc2ebb245..a739b0491c7a9eae9219ba7e404c83483d04c692 100644 (file)
@@ -933,6 +933,13 @@ moves_loop: // When in check and at SpNode search starts from here
 
           value = -search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d, true);
 
+          // Research at intermediate depth if reduction is very high
+          if (value > alpha && ss->reduction >= 4 * ONE_PLY)
+          {
+              Depth d2 = std::max(newDepth - 2 * ONE_PLY, ONE_PLY);
+              value = -search<NonPV>(pos, ss+1, -(alpha+1), -alpha, d2, true);
+          }
+
           doFullDepthSearch = (value > alpha && ss->reduction != DEPTH_ZERO);
           ss->reduction = DEPTH_ZERO;
       }