X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=866444a8388e29236d50ec4a609a59f11f45df74;hp=36e73a09cd8f1a2970edc9afdd405506da4b0baf;hb=368f976fb6fc9096d7f19b0443fb4d1af40eec14;hpb=aba906b734e03f90c7f32587cc845c927483aac8 diff --git a/src/search.cpp b/src/search.cpp index 36e73a09..866444a8 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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(improving, depth, moveCount);