]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Do lmr for more captures
[stockfish] / src / search.cpp
index b54ff19648d7adce0fd1b4f04f7c11afada68bbd..d3f38aae10954ec1eadefdbbc59cb6548e21b837 100644 (file)
@@ -1084,7 +1084,8 @@ moves_loop: // When in check, search starts from here
           && (  !captureOrPromotion
               || moveCountPruning
               || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
           && (  !captureOrPromotion
               || moveCountPruning
               || ss->staticEval + PieceValue[EG][pos.captured_piece()] <= alpha
-              || cutNode))
+              || cutNode
+              || thisThread->ttHitAverage < 384 * ttHitAverageResolution * ttHitAverageWindow / 1024))
       {
           Depth r = reduction(improving, depth, moveCount);
 
       {
           Depth r = reduction(improving, depth, moveCount);