Skip to content

Commit

Permalink
Add another insufficient material test
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Mar 31, 2023
1 parent 006fd94 commit 0392397
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ def _check(board, white, black):
_check(chess.variant.CrazyhouseBoard("8/8/8/8/3k4/3N~4/3K4/8 w - - 0 1"), False, False)

_check(chess.variant.HordeBoard("8/5k2/8/8/8/4NN2/8/8 w - - 0 1"), True, False)
_check(chess.variant.HordeBoard("8/1b5r/1P6/1Pk3q1/1PP5/r1P5/P1P5/2P5 b - - 0 52"), False, False)

def test_promotion_with_check(self):
board = chess.Board("8/6P1/2p5/1Pqk4/6P1/2P1RKP1/4P1P1/8 w - - 0 1")
Expand Down

0 comments on commit 0392397

Please sign in to comment.