]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Less LMR at root
[stockfish] / src / search.cpp
index 36e73a09cd8f1a2970edc9afdd405506da4b0baf..866444a8388e29236d50ec4a609a59f11f45df74 100644 (file)
@@ -1007,8 +1007,10 @@ moves_loop: // When in check, search starts from here
       // Step 16. Reduced depth search (LMR). If the move fails high it will be
       // re-searched at full depth.
       if (    depth >= 3 * ONE_PLY
-          &&  moveCount > 1
-          && (!captureOrPromotion || moveCountPruning))
+          &&  moveCount > 1 + 3 * rootNode
+          && (  !captureOrPromotion
+              || moveCountPruning
+              || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha))
       {
           Depth r = reduction<PvNode>(improving, depth, moveCount);