Starting point for building a Haskell algorithm competition bot for the upcoming Reaktor code camp.
- JSON over TCP/IP
- Single JSON object message per line (separated by
\n
) - Message structure consists of
msgType
anddata
- Client starts with a JOIN message:
{"msgType":"join","data":"lollerström"}
- Client waits until server starts a competition
- Start message is a list of player names:
{"msgType":"gameStarted","data":["lollerström", "ökytunkkaaja"]}