Files
gomoku/server/pkg
tiennm99 ca933abeed test(state): unit tests for runner, PVP/PVE game flow, waiting, and gameover
27 tests covering: welcome/setNickname/home transitions, runner exit on
ErrClientExit, waiting owner/joiner role split with StartCh signal,
PVP move validation (turn order, bounds, occupancy, win detection with
GameOverCh cross-goroutine sync), PVE human+AI alternation and AI-first
when human is White, gameover reset/rematch for both PVP and PVE.
2026-04-11 14:28:58 +07:00
..