diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-02-27 03:41:26 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-02-27 03:41:26 +0300 |
commit | 5e2238ce4ae4ad7bc2d57ee45af866976211e6d3 (patch) | |
tree | 6766d57de41fd52fcc319150dc5e2ea8f2da21c1 /src/grossmeister/UCI.rs | |
parent | a333e9285d55dad06b6507340f1c0416c9c7b6f9 (diff) | |
download | chessnost-5e2238ce4ae4ad7bc2d57ee45af866976211e6d3.tar.gz |
feat: add 3-fold repetition
Diffstat (limited to 'src/grossmeister/UCI.rs')
-rw-r--r-- | src/grossmeister/UCI.rs | 2 |
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, |