X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=9562bf8640d4e8b04772d0e915281107e6218f97;hp=044187e5d90106cdd452fdbfcaebeb9d0b05c15a;hb=0aee1ec4ab3f7891c6a59d9d9e0113655300ce64;hpb=d878bc8cda47044f4db37a954f25e6122dc0d0ca diff --git a/src/search.cpp b/src/search.cpp index 044187e5..9562bf86 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1028,11 +1028,7 @@ moves_loop: // When in check, search starts from here continue; } else if (!pos.see_ge(move, Value(-194) * depth)) // (~25 Elo) - { - if (captureOrPromotion && captureCount < 32) - capturesSearched[captureCount++] = move; continue; - } } // Step 14. Extensions (~75 Elo) @@ -1119,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