]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Less LMR at root
[stockfish] / src / search.cpp
index bafc374ba29993ab05b62c8ec95729990a7fbbb8..866444a8388e29236d50ec4a609a59f11f45df74 100644 (file)
@@ -1007,7 +1007,7 @@ 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
+          &&  moveCount > 1 + 3 * rootNode
           && (  !captureOrPromotion
               || moveCountPruning
               || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha))