Crates for the browser: trainer and play on web-time, Judge everywhere, files closed by scope
trainer keeps its deadline in web_time::Instant (std's panics in a browser; on a computer it is std's). play: the Judge type is on every target, only starting it (an engine process) is native. chess-import: files are closed by the end of their block before a rename instead of drop(), which a browser's File (no destructor) makes a lint there. rustfmt of the earlier changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1e0fb082e5
commit
a4445d2c15
9 changed files with 44 additions and 27 deletions
|
|
@ -11,7 +11,8 @@
|
|||
|
||||
use std::path::PathBuf;
|
||||
use std::sync::Mutex;
|
||||
use std::time::{Duration, Instant};
|
||||
use std::time::Duration;
|
||||
use web_time::Instant;
|
||||
|
||||
use chess_core::shakmaty::fen::Fen;
|
||||
use chess_core::shakmaty::{CastlingMode, Chess, EnPassantMode, Move, Square};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue