The repository also documents AI play, undo confirmation, replay, sandbox mode, heartbeat throttling and cleanup for rooms inactive over seven days.
02 / Architecture
Browser UIboard, rules, replay and variants
HTTP APIrooms and change-side
Revision Syncpolling, player token, heartbeat
PersistenceNeon Postgres or Cloudflare D1
03 / Engineering
ConcurrencyRevision checks prevent stale clients from overwriting newer game state.ReconnectA player token in LocalStorage lets a browser reclaim its seat.VariantsThe same UI supports standard Xiangqi, Jieqi, sandbox and custom positions.PersistenceRoom state includes game JSON, revision, heartbeat, undo request and timestamps.