Skip to content

Commit

Permalink
Test Antichess KvK that cannot be resolved by search (#929)
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasf committed Oct 17, 2022
1 parent 13e674c commit c6e7e49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3893,12 +3893,16 @@ def test_suicide_stats(self):
msg=f"Expected dtz {solution['dtz']}, got {dtz} (in l. {l + 1}, fen: {board.fen()})")

def test_antichess_kvk(self):
kvk = chess.variant.AntichessBoard("8/8/8/8/8/3K4/8/4k3 w - - 0 30")
kvk = chess.variant.AntichessBoard("4k3/8/8/8/8/8/8/4K3 w - - 0 1")

tables = chess.syzygy.Tablebase()
with self.assertRaises(KeyError):
tables.probe_dtz(kvk)

tables = chess.syzygy.Tablebase(VariantBoard=chess.variant.AntichessBoard)
with self.assertRaises(chess.syzygy.MissingTableError):
tables.probe_dtz(kvk)


class NativeGaviotaTestCase(unittest.TestCase):

Expand Down

0 comments on commit c6e7e49

Please sign in to comment.