games_hub: chess, first variant king and pawn against king - #1620
Conversation
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
iili | 01d7d0c | Commit Preview URL Branch Preview URL |
Sep 30 2026, 08:29 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
ast-lol | 01d7d0c | Commit Preview URL Branch Preview URL |
Sep 30 2026, 08:29 PM |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
1d4-web | 01d7d0c | Commit Preview URL Branch Preview URL |
Sep 30 2026, 08:28 PM |
Review panel — #1620 @
|
|
Addressed in 024443f:
Generated by Claude Code |
|
Recheck @
Nothing further from the panel. Watching CI on this tip. |
|
Recheck @ |
Adds chess as a game in games_hub, with one variant so far: king and pawn against king (
kpk), starting from a random position.libs/chess_play): the start position plus the moves played, in UCI, over the vendored chess-library.model/chess.smithy): achessenvelope on the Play stream.startGamesets the clock in seconds (30–1800 per side, 0–30 increment, default 3+2).golf_hub):SweepChessClocksOnceruns every 250 ms on each instance and ends games whose clock has run out. It goes through the same conditional commit as a move, so when several instances hold the room only one flag lands.kChessFlagRetry(5 s) before the next attempt, so a database outage can't stall the hub on every tick.SetClockandSetChessOpenerlet tests fix the time and the start position.VARIANTS.What a reviewer won't see from the diff:
TableEngineMove's commit loop is nowApplyTableEngineMoveLocked, so the sweep can reuse it without sending a rejection to a player who sent nothing. Castle and rummy go through it unchanged.bazel/3p/chess_libraryvisibility now includeschess_play, whose headers expose no chess-library types.Tests:
Local runs:
Review panel: four read-only agents covering correctness, concurrency/storage, tests/docs, and altitude. Their fixes are in b1d0fc4.
Follow-ups:
Not covered here:
UI: muchq/muchq.github.io#394.