trainer: the opening trainer as a crate shared by the desktop and Android
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:
parent
45a37fc65b
commit
bb2ef38ef6
7 changed files with 166 additions and 33 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue