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

11
Cargo.lock generated
View file

@ -820,6 +820,7 @@ dependencies = [
"skrifa",
"sys-locale",
"tar",
"trainer",
"uci",
"ureq",
"whatlang",
@ -4593,6 +4594,16 @@ dependencies = [
"once_cell",
]
[[package]]
name = "trainer"
version = "1.4.0"
dependencies = [
"chess-core",
"chrono",
"serde",
"serde_json",
]
[[package]]
name = "tree_magic_mini"
version = "3.2.2"