diff --git a/src/search.cpp b/src/search.cpp index 71a46ea7b..743f4bce7 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1856,16 +1856,13 @@ void update_continuation_histories(Stack* ss, Piece pc, Square to, int bonus) { static constexpr std::array conthist_bonuses = { {{1, 1108}, {2, 652}, {3, 273}, {4, 572}, {5, 126}, {6, 449}}}; - static constexpr int conthist_offsets[6]{71, 106, -22, -20, 29, -74}; - for (const auto [i, weight] : conthist_bonuses) { // Only update the first 2 continuation histories if we are in check if (ss->inCheck && i > 2) break; if (((ss - i)->currentMove).is_ok()) - (*(ss - i)->continuationHistory)[pc][to] - << (bonus * weight / 1024) + conthist_offsets[i - 1]; + (*(ss - i)->continuationHistory)[pc][to] << (bonus * weight / 1024) + 80 * (i < 2); } }