diff --git a/src/movepick.cpp b/src/movepick.cpp index b0059bd3..1df0b0cc 100644 --- a/src/movepick.cpp +++ b/src/movepick.cpp @@ -249,7 +249,7 @@ top: if (!skipQuiets) { cur = endBadQuiets = endBadCaptures; - endMoves = generate(pos, cur); + endMoves = generate(pos, cur); score(); partial_insertion_sort(cur, endMoves, -3560 * depth); @@ -260,8 +260,7 @@ top: case GOOD_QUIET : if (!skipQuiets && select([&]() { - return cur->value > -14000 ? true - : (*endBadQuiets++ = *cur, false); + return cur->value > -14000 ? true : (*endBadQuiets++ = *cur, false); })) return *(cur - 1); diff --git a/src/search.cpp b/src/search.cpp index bb9ce68b..5f20e593 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1900,8 +1900,7 @@ 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 * (512 + depth * 16) / 1024); + update_continuation_histories(ss - 1, pos.piece_on(prevSq), prevSq, -malus * 580 / 1024); // Decrease stats for all non-best capture moves for (Move move : capturesSearched)