This repo is the game server only.
The screenshot below is taken from the separate web client repo.
version
join
start
reveal
opponent-disconnected
version
join
select
- Client opens WebSocket with server
- Client waits for server to send first packet
- Client can then send join request
TO CLIENT {"type": "join", "status": "BUSY"}
TO CLIENT {"type": "join", "status": "OPEN", "playing_as" : 0}
TO CLIENT {"type": "start"}
TO CLIENT {"type": "opponent-disconnected"}
TO CLIENT
{
"type": "reveal",
"for": {"i" : 0, "j" : 0},
"score": {"0": 0, "1": 0, "seq": 0, "on": true},
"show": [{"i": 0, "j": 0, "value": 0, "owner": 0}, ...]
}
TO SERVER {"type": "join"}
TO SERVER {"type": "select", "i": 0, "j": 0}