X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=0eea4127f80a36955d652301d73882f64806eca2;hp=c1ed1f9540a059b7222a4c1663b771847dcfb0c2;hb=baf184e8d9e22c86407538ab4b4004f58e0e996d;hpb=7150183d07a40653aff6ba64a73f27fe049f525d;ds=sidebyside diff --git a/src/search.cpp b/src/search.cpp index c1ed1f95..0eea4127 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1115,7 +1115,7 @@ moves_loop: // When in check, search starts from here // Step 16. Reduced depth search (LMR, ~200 Elo). If the move fails high it will be // re-searched at full depth. if ( depth >= 3 - && moveCount > 1 + 2 * rootNode + && moveCount > 1 + rootNode + (rootNode && bestValue < alpha) && (!rootNode || thisThread->best_move_count(move) == 0) && ( !captureOrPromotion || moveCountPruning