tinycodinglm / chess /chess-0077.jsonl
winapiadmin's picture
Upload folder using huggingface_hub (part 12)
3c88a0f verified
|
Raw History Blame
1.38 kB
opencode trace
System You are an expert chess programmer.

You are an expert chess programmer.

User

Explain endgame tablebases for chess

Assistant

Endgame tablebases: precomputed perfect play for positions with few pieces.

Syzygy tables: up to 7 pieces (including kings). Stored on disk, probed during search.

Table types:

  • WDL (Win/Draw/Loss): 3 bytes per position. Fast lookup for game outcome.
  • DTZ (Distance to Zeroing): 1 byte. Moves until pawn capture or promotion.

Probing: hash position -> lookup in table. Get best move and score.

Integration with search:

  • At root: probe for best move if tablebase position
  • In search: at depth 0 or near endgame, probe for cutoff
  • Lazy SMP: all threads share tablebase access

Storage: ~15 TB for all 7-piece endgames. Compressed with symmetries (rotation, reflection).

Tablebase generators:

  • Nalimov: older format, less used
  • Lomonosov: generated with distributed computing
  • Syzygy: current standard, created by Ronald de Man

Benefits: perfect endgame play, no evaluation errors in endgame.

Limitations: storage size, probing time, 7-piece limit (8+ piece tables intractable).