Skip to content

Commit fcfd19e

Browse files
authored
MovePicker: Add 4k for queen promotions (#870)
STC Elo | 2.42 +- 1.82 (95%) SPRT | 8.0+0.08s Threads=1 Hash=16MB LLR | 2.93 (-2.25, 2.89) [0.00, 3.00] Games | N: 36026 W: 9233 L: 8982 D: 17811 Penta | [99, 4109, 9355, 4342, 108] https://recklesschess.space/test/13282/ LTC Elo | 1.20 +- 0.95 (95%) SPRT | 40.0+0.40s Threads=1 Hash=64MB LLR | 2.92 (-2.25, 2.89) [0.00, 3.00] Games | N: 117802 W: 29359 L: 28952 D: 59491 Penta | [58, 13194, 31984, 13613, 52] https://recklesschess.space/test/13286/ Bench: 2798043
1 parent 44d5bed commit fcfd19e

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/movepick.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,10 @@ impl MovePicker {
170170

171171
entry.score =
172172
16 * captured.value() + td.noisy_history.get(threats, td.board.moved_piece(mv), mv.to(), captured);
173+
174+
if mv.is_promotion() && mv.promotion_piece() == Some(PieceType::Queen) {
175+
entry.score += 4000;
176+
}
173177
}
174178
}
175179
}

0 commit comments

Comments
 (0)