X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=9562bf8640d4e8b04772d0e915281107e6218f97;hp=985af7bc2dc7433b63da3439cb0c03b2ed3fb405;hb=c390b734c451b3d976b331244e281d261b26ac3a;hpb=6ccb1cac5aaaf7337da8b1738448793be63fdfdb diff --git a/src/search.cpp b/src/search.cpp index 985af7bc..9562bf86 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 + rootNode + (rootNode && bestValue < alpha) + && moveCount > 1 + 2 * rootNode && (!rootNode || thisThread->best_move_count(move) == 0) && ( !captureOrPromotion || moveCountPruning