Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
70
########## KBBBvK ##########
White to move:
0 positions are wins.
65635758 positions are draws.
0 positions are losses.
Black to move:
128586 positions win in 0 ply.
128586 positions are wins.
102327054 positions are draws.
0 positions are losses.
########## KBBNvK ##########
White to move:
0 positions are wins.
70707758 positions are draws.
0 positions are losses.
Black to move:
43598 positions win in 0 ply.
43598 positions are wins.
102412042 positions are draws.
0 positions are losses.
########## KBBPvK ##########
White to move:
0 positions are wins.
224244142 positions are draws.
0 positions are losses.
Black to move:
99078 positions win in 0 ply.
99078 positions are wins.
307384842 positions are draws.
0 positions are losses.
Longest win for black: 0 ply; 8/P7/8/8/8/1B2B3/8/K1k5 b - -
########## KBBvKB ##########
White to move:
1276 positions win in 0 ply.
1276 positions are wins.
76801536 positions are draws.
0 positions are losses.
Black to move:
19256 positions win in 0 ply.
19256 positions are wins.
89031272 positions are draws.
0 positions are losses.
########## KBBvKN ##########
White to move:
88 positions win in 0 ply.
88 positions are wins.
76802724 positions are draws.
0 positions are losses.
Black to move:
15916 positions win in 0 ply.
15916 positions are wins.
93999764 positions are draws.
0 positions are losses.
End of preview. Expand in Data Studio

Misère Chess Syzygy Tablebases

Syzygy-style endgame tablebases for misère chess with 3 to 5 pieces (kings included). Each table has a WDL file (.mtbw, win/draw/loss with the 50-move rule) and a DTZ file (.mtbz, distance to zeroing move).

Pieces Tables WDL (.mtbw) DTZ (.mtbz)
3 5 720 B 400 B
4 30 93.7 KB 2.4 KB
5 110 35.4 MB 10.1 MB
Total 145 35.5 MB 10.1 MB

Layout

The layout follows the variant tables on tablebase.lichess.ovh/tables:

3-4-5/             all tables with 3 to 5 pieces
  3-4-5.mtbw.md5   md5sums of the WDL files
  3-4-5.mtbz.md5   md5sums of the DTZ files
stats.txt          per-table statistics (output of mtbgen --stats)

Download everything with:

hf download ianfab/misere-syzygy --repo-type dataset --local-dir misere-syzygy

Rules

All rules are those of chess, including the 50-move rule and stalemate being a draw, except that a player who is checkmated wins.

Since a player can usually avoid checkmating the opponent, most positions are draws. Up to 4 pieces, and in 94 of the 110 5-piece tables, only the checkmate positions themselves are wins. The other 16 5-piece tables (all with a queen or a pawn, e.g. KQQvKQ, KQBvKP, KRRvKQ) contain real forced wins and losses; in KQQvKQ the longest win takes 100 ply and the longest cursed win 318 ply.

Format

The files use the layout and indexing of the regular Syzygy tables, but have their own magic bytes (WDL 0xd839966b, DTZ 0x027ea0f0), so existing Syzygy probing code does not accept them without changes:

  • A checkmated position is stored as a win for the side to move; a move that checkmates the opponent is a loss with DTZ = -1.
  • The DTZ value stored for a checkmated position is not meaningful. Probing code must detect checkmate before probing DTZ.
  • After a double pawn push, a position can be checkmate if en passant is ignored, so that the en passant capture is the only legal move. As for chess, the tables store positions without en passant rights; probing code must handle en passant captures itself, including this case.
  • DTZ is rounded like the original Syzygy tables (generated without -p), so DTZ values may be off by one ply unless the table contains positions with DTZ of exactly 100 ply.

Generation and verification

Generated with the misère generator in fairy-stockfish/variant-tb, a fork of syzygy1/tb, commit eb8fb17 on branch misere (pull request #3, not merged yet; the tables will be updated if the format changes in review):

make -C src misere
tests/variant_test.py misere --min 3 --max 5 --workdir 3-4-5

Every table except KPvKP was checked with mtbver/mtbverp (consistency of WDL and DTZ against the subtables); like for chess, pawnful tables with symmetric material cannot be verified. tbcheck confirms the embedded checksums of all files, which are also listed in checksums/misere/ of the generator repository.

License

The tables are released under CC0 1.0. The generator code is licensed separately under GPL-2.0.

Downloads last month
64