mirror of
https://github.com/TheRealOwenRees/chess-endgame-trainer.git
synced 2026-11-18 03:32:06 +00:00
Add local tablebase path config, fetch and check tasks (#31)
Read the local Syzygy directory from TABLEBASE_PATH so a dev machine and a VPS can point at their own copies. Add mix tablebase.fetch (downloads the 3/4/5 WDL+DTZ set, resumable) and mix tablebase.check (verifies it loads), plus a boot log reporting whether local tablebases are ready and the largest piece count. Covers the codeable part of #31; installing on the VPS and setting TABLEBASE_PATH there remains a manual step.
This commit is contained in:
@@ -20,7 +20,8 @@ defmodule Chesstrainer.Application do
|
||||
ChesstrainerWeb.Endpoint,
|
||||
{Registry, keys: :unique, name: Chesstrainer.CacheRegistry},
|
||||
{Task.Supervisor, name: Chesstrainer.Cache.BackupSupervisor},
|
||||
{Chesstrainer.Cache, {:tablebase, cache_opts}}
|
||||
{Chesstrainer.Cache, {:tablebase, cache_opts}},
|
||||
Chesstrainer.Endgames.Tablebase.Local
|
||||
]
|
||||
|
||||
# See https://elixir.hexdocs.pm/Supervisor.html
|
||||
|
||||
Reference in New Issue
Block a user