gameserv: model the domain with enums (GameType/Side/Status/Outcome/Board), zero-alloc grid moves
All checks were successful
CI / check (push) Successful in 3m54s

This commit is contained in:
Jean Chevronnet 2026-07-17 12:20:26 +00:00
parent 108c15e95a
commit cfe05481d6
No known key found for this signature in database
3 changed files with 472 additions and 337 deletions

View file

@ -569,7 +569,9 @@ pub fn encode(st: &State) -> String {
}
/// Inverse of [`encode`]. On malformed input (fewer than 4 comma parts) returns
/// [`initial`].
/// [`initial`]. The referee keeps a live `State`, so this is only exercised by the
/// roundtrip test today — kept as part of the complete, perft-verified engine.
#[allow(dead_code)]
pub fn decode(enc: &str) -> State {
let mut st = State {
board: [EMPTY; 64],