From 66b5269b63239bb12bd924e6b7a24eefd16de7c5 Mon Sep 17 00:00:00 2001 From: SzilBalazs Date: Sat, 2 Sep 2023 19:50:20 +0200 Subject: [PATCH] Good and bad promos Bench: 9303499 --- src/search/move_list.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/search/move_list.h b/src/search/move_list.h index 178c624..4f9a554 100644 --- a/src/search/move_list.h +++ b/src/search/move_list.h @@ -26,7 +26,8 @@ namespace search { class MoveList { static constexpr int MOVE_SCORE_HASH = 10'000'000; - static constexpr int MOVE_SCORE_PROMO = 9'000'000; + static constexpr int MOVE_SCORE_GOOD_PROMO = 9'000'000; + static constexpr int MOVE_SCORE_BAD_PROMO = -10'000'000; static constexpr int MOVE_SCORE_GOOD_CAPTURE = 8'000'000; static constexpr int MOVE_SCORE_FIRST_KILLER = 7'000'000; static constexpr int MOVE_SCORE_SECOND_KILLER = 6'000'000; @@ -95,7 +96,7 @@ namespace search { if (move == hash_move) { return MOVE_SCORE_HASH; } else if (move.is_promo()) { - return MOVE_SCORE_PROMO; + return move.get_promo_type() == QUEEN ? MOVE_SCORE_GOOD_PROMO : MOVE_SCORE_BAD_PROMO; } else if (move.is_capture()) { return (see(board, move, 0) ? MOVE_SCORE_GOOD_CAPTURE : MOVE_SCORE_BAD_CAPTURE) + get_mvv_lva(move); } else if (move == history.killer_moves[ply][0]) {