Files
chess-endgame-trainer/docs/adr/0001-tablebase-via-lichess-api.md
T

9 lines
458 B
Markdown

# Tablebase via the lichess API instead of self-hosting
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.