Skip to content

Commit eb77102

Browse files
committed
Test atomic position with exploded king
1 parent 52dbcf0 commit eb77102

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4127,6 +4127,11 @@ def test_atomic960(self):
41274127
self.assertEqual(game.end().parent.board().fen(), "rkr1b1n1/1pp2p2/4n1p1/p2pp2p/3P3P/Q1P3P1/PP2PP2/RK3N2 w Qkq - 0 10")
41284128
self.assertEqual(game.end().board().fen(), "rkr1b1n1/1pp2p2/4n1p1/p2pp2p/3P3P/Q1P3P1/PP2PP2/2KR1N2 b kq - 1 10")
41294129

4130+
def test_atomic_king_exploded(self):
4131+
board = chess.variant.AtomicBoard("rn5r/pp4pp/2p3Nn/5p2/1b2P1PP/8/PPP2P2/R1B1KB1R b KQ - 0 9")
4132+
self.assertEqual(board.outcome().winner, chess.WHITE)
4133+
self.assertEqual(board.status(), chess.STATUS_VALID)
4134+
41304135

41314136
class RacingKingsTestCase(unittest.TestCase):
41324137

0 commit comments

Comments
 (0)