diff --git a/src/search.cpp b/src/search.cpp index d5e58eb5..6827f512 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1877,7 +1877,8 @@ void update_all_stats(const Position& pos, // Extra penalty for a quiet early move that was not a TT move in // previous ply when it gets refuted. if (prevSq != SQ_NONE && ((ss - 1)->moveCount == 1 + (ss - 1)->ttHit) && !pos.captured_piece()) - update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, -malus * 980 / 1024); + update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, + -malus * (512 + depth * 16) / 1024); // Decrease stats for all non-best capture moves for (Move move : capturesSearched)