WHO <username1> <games1> <username2> <games2> ...
- lists connected users and the number of games they've won.
+ Lists connected users and the number of games they've won.
+
+ Possible errors: NONAMESET
1.2.2. Message
MESSAGE
+ Sends a message to all connected users. The text must be a
+ single token. Use a quoted-string to include spaces in the
+ message text.
+
+ Possible errors: NONAMESET
+
1.2.3. Help
HELP { <command> }
QUIT
+ Disconnects the client from the server.
+
1.2.5. Version
VERSION <client-version-number>
INVITE
- Possible errors: NOUSER, BUSY
+ Possible errors: NOUSER, BUSY, NONAMESET
1.3.2. Accepting an invitation
ACCEPT
+ Possible errors: NONAMESET
+
1.4. In-game commands
1.4.1. Get the game contents
_|X|_
X|O|O"
- Possible errors: NOTINGAME
+ Possible errors: NOTINGAME, NONAMESET
1.4.2. Part
Departs the current game
- Possible errors: NOTINGAME
+ Possible errors: NOTINGAME, NONAMESET
1.4.3. Making a move
<number> indicates a number in the tic-tac-toe grid as
follows:
- 1|2|3
- 4|5|6
- 7|8|9
+ 0|1|2
+ 3|4|5
+ 6|7|8
- Possible errors: NOTINGAME, NOTYOURMOVE, NOTGRID
+ Possible errors: NOTINGAME, NOTYOURMOVE, NOTGRID, NONAMESET
2. Asynchronous notification.
ERROR NONAMESET
- 'helo' must be sent before any command other than 'quit'.
+ 'helo' must be sent before any command other than 'help',
+ 'version', 'quit'.
+
+ Possibly returned by: WHO MESSAGE INVITE ACCEPT SHOW PART MOVE
3.1.2. Invalid name