From 5e2238ce4ae4ad7bc2d57ee45af866976211e6d3 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Mon, 27 Feb 2023 03:41:26 +0300 Subject: feat: add 3-fold repetition --- src/grossmeister/UCI.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/grossmeister/UCI.rs') 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, -- cgit v1.2.3