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:
vrubelroman 2026-10-30 15:09:17 +03:00
parent 1e0fb082e5
commit a4445d2c15
9 changed files with 44 additions and 27 deletions

View file

@ -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};