Files
chess-endgame-trainer/docs/adr/0001-tablebase-via-lichess-api.md
T
owenrees 3b527d21ed Update domain docs for local tablebase routing (#32)
Redefine Tablebase and Cooldown in GLOSSARY.md for the local<=5 / Lichess 6-7 / cache-only-API split, and add Probe and Position key terms. Add ADR-0005 recording the source split and its latency-vs-footprint trade-off, and mark ADR-0001 superseded.
2026-11-03 14:49:07 +01:00

581 B

Tablebase via the lichess API instead of self-hosting

Superseded by ADR-0005: five-or-fewer-piece positions are now probed locally; Lichess remains for six and seven pieces.

The trainer grades moves against Syzygy tablebases, but self-hosting them is not possible yet, so we query the lichess tablebase API (tablebase.lichess.ovh) over HTTP and cache responses. This couples the core play loop to a remote service with rate limits (mitigated by a cooldown and an LFU cache), but avoids the multi-terabyte 7-piece dataset and hosting cost until local tablebases are viable.