Skip to content

Commit c6e7e49

Browse files
committed
Test Antichess KvK that cannot be resolved by search (#929)
1 parent 13e674c commit c6e7e49

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

test.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3893,12 +3893,16 @@ def test_suicide_stats(self):
38933893
msg=f"Expected dtz {solution['dtz']}, got {dtz} (in l. {l + 1}, fen: {board.fen()})")
38943894

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

38983898
tables = chess.syzygy.Tablebase()
38993899
with self.assertRaises(KeyError):
39003900
tables.probe_dtz(kvk)
39013901

3902+
tables = chess.syzygy.Tablebase(VariantBoard=chess.variant.AntichessBoard)
3903+
with self.assertRaises(chess.syzygy.MissingTableError):
3904+
tables.probe_dtz(kvk)
3905+
39023906

39033907
class NativeGaviotaTestCase(unittest.TestCase):
39043908

0 commit comments

Comments
 (0)