API overview
The two game endpoints, one Tick flow, authentication, JSON rules, and common field formats.
WebSocket
Connect once, handle the three server messages, and recover after a disconnect.
State model
PlayerState fields, JSON examples, world objects, visibility, and update rules.
Command API
Submit a plan, choose Unit and Core actions, retry safely, and understand replacement and limits.
Resolution results
Read action results from state.events and look up every event and reason code.
Errors and recovery
Read an error response, decide whether to retry, and fix command or WebSocket failures.