aboutsummaryrefslogtreecommitdiff
path: root/src/grossmeister/UCI.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/grossmeister/UCI.rs')
-rw-r--r--src/grossmeister/UCI.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/grossmeister/UCI.rs b/src/grossmeister/UCI.rs
index 034b73b..3132e72 100644
--- a/src/grossmeister/UCI.rs
+++ b/src/grossmeister/UCI.rs
@@ -59,7 +59,7 @@ impl Grossmeister {
.find(|m| {
let promo_matches = match input_move.kind {
MoveKind::Promotion(piece) => match m.kind {
- MoveKind::Promotion(another_piece) => piece == another_piece,
+ MoveKind::Promotion(another_piece) => piece.without_color() == another_piece.without_color(),
_ => false
},
_ => true,