Skip to content

Commit

Permalink
kinglet test
Browse files Browse the repository at this point in the history
  • Loading branch information
alexobviously committed May 30, 2024
1 parent 2f8e54b commit 6924d79
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/misc_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,13 @@ void main() {
),
);
});
test('Kinglet Castling & Win Condition', () {
final g = Game(
variant: MiscVariants.kinglet(),
fen: 'rnbqkbnr/p7/1P6/8/8/8/P7/RNBQK2R w KQkq - 0 1',
);
g.makeMultipleMoves(['e1g1', 'h8h1', 'b1a3', 'h1g1', 'b6a7']);
expect(g.result, isA<WonGameElimination>());
expect(g.winner, Bishop.white);
});
}

0 comments on commit 6924d79

Please sign in to comment.