]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Simplify LMR rule for non-checking captures
[stockfish] / src / search.cpp
index 3a0839d62db858b0aa290036c7dce974e72506f9..d16d9cad897add4d463bbb8263fa9fee5c44b6e6 100644 (file)
@@ -1156,7 +1156,7 @@ moves_loop: // When in check, search starts from here
               && thisThread->bestMoveChanges <= 2)
               r++;
 
-          // Decrease reduction if opponent's move count is high (~5 Elo)
+          // Decrease reduction if opponent's move count is high (~1 Elo)
           if ((ss-1)->moveCount > 13)
               r--;
 
@@ -1164,14 +1164,7 @@ moves_loop: // When in check, search starts from here
           if (singularQuietLMR)
               r--;
 
-          if (captureOrPromotion)
-          {
-              // Increase reduction for non-checking captures likely to be bad
-              if (   !givesCheck
-                  && ss->staticEval + PieceValue[EG][pos.captured_piece()] + 210 * depth <= alpha)
-                  r++;
-          }
-          else
+          if (!captureOrPromotion)
           {
               // Increase reduction if ttMove is a capture (~3 Elo)
               if (ttCapture)