Concept
Search Alone vs Tablebase Probe
Heuristic eval + 40+ ply search may miss fortress draws, tablebase wins, or optimal conversion paths. CPU-heavy and still wrong in theory.
O(1) disk lookup returns perfect WDL/DTZ. Engine converts to search score, prunes losing moves, picks shortest wins — mathematically correct.
Coverage
How Many Pieces?
Count includes both kings and all remaining pieces. 8+ piece positions are not in standard Syzygy — engines fall back to search + NNUE/heuristic eval.
Data
WDL — The Three Outcomes
Win — side to move wins with perfect play (may require many moves).
Draw — neither side can force a win (includes stalemate, repetition, 50-move).
Loss — side to move loses with perfect defense (opponent wins).
Precision
DTZ — Distance to Zeroing
.rtbw / .rtwd)Smaller. Answer: can I win, hold a draw, or am I lost? Enough for correct result and many cutoffs. Used heavily in fast play.
.rtbz / .rtzd)Larger. Answer: minimum half-moves until capture, pawn push, or check — the shortest path to conversion. Needed for optimal play and cursed wins.
Pipeline
How an Engine Probes Tablebases
≤7 pieces
EP · castling
in .rtb*
+ best move
Files
Syzygy File Types
WDL tablebase (without DTZ). Most common for analysis with limited disk space.
Combined WDL + DTZ in one file. Preferred when you want shortest mates.
Compression variants (large pages). Same data, different on-disk layout for faster probing.
Named by material (Kings + pieces). One file per material signature up to 7 men.
Integration
Where Probes Hook Into Search
Before expanding a subtree, check TB. A proven draw returns score 0 immediately; a proven loss returns a huge negative — massive node savings.
Winning TB moves rank first; losing moves may be skipped entirely. DTZ breaks ties among several winning moves.
Syzygy stores cursed wins (win but draw under 50-move) and blessed losses. Engines adjust conversion strategy accordingly.
Set SyzygyPath (or equivalent) to the folder containing .rtb* files. Option SyzygyProbeLimit caps piece count (3–7).
Reference
Formats & History
| Format | Era | Used by | Notes |
|---|---|---|---|
| Nalimov .emt/.emm | 1990s–2000s | Old engines, Crafty | 5-man standard; replaced by Syzygy |
| Gaviota .gtb | 2000s | Some hobby engines | Alternative compression; less common today |
| Syzygy .rtb* | 2013+ | Stockfish, Komodo, etc. | 6-man complete; 7-man widely available |
| Scorpio bitbases | 2010s | Endgame bitbases | Some 6-man bitbase sets; Syzygy dominates |
Setup & usage tips
- Download Syzygy files from official mirrors (e.g. syzygy-tables.info) — start with 3–5 man if disk is limited
- Point engine to one directory; all .rtbw/.rtbz files for that limit must be present for a material class
- WDL-only is fine for correct results; add DTZ for shortest mates and analysis quality
- In analysis, enable TB — in bullet games some users disable DTZ probes to save I/O latency
- Tablebases assume correct en passant and castling rights — FEN must match stored positions
Explore the full engine stack
Tablebases plug into search and UCI — see how the rest of a modern engine fits together.
Related: Search Algorithm · Transposition Table · UCI Protocol · All Blogs