trainer: the opening trainer as a crate shared by the desktop and Android
Some checks are pending
CI / check (push) Waiting to run
CI / windows-build (push) Waiting to run
CI / macos-build (push) Waiting to run

apps/desktop/src/train.rs moves to crates/trainer; the rule of a move (right,
the last one, wrong) becomes Training::judge, the desktop uses it; the app
names the stats file (set_file). The line's last move comes in plain SAN; the
desktop shows it its own way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-26 01:00:11 +03:00
parent 45a37fc65b
commit bb2ef38ef6
7 changed files with 166 additions and 33 deletions

View file

@ -9,6 +9,7 @@ members = [
"crates/releases",
"crates/mobile-api",
"crates/maia",
"crates/trainer",
"apps/desktop",
]
@ -43,6 +44,7 @@ maia = { path = "crates/maia" }
game-review = { path = "crates/game-review" }
online-games = { path = "crates/online-games" }
releases = { path = "crates/releases" }
trainer = { path = "crates/trainer" }
[profile.dev.package."*"]
opt-level = 2