]> git.cworth.org Git - ttt/blobdiff - PROTOCOL
2005-11-28 Kevin Worth <kevin@theworths.org>
[ttt] / PROTOCOL
index 13391ffc2392008b35db92b3d69a02ed135a40da..c507ffeb27ca47eaa9c9098c301486b22916ffd3 100644 (file)
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -41,14 +41,11 @@ Document Conventions
     use must be done through some external mechanism.  Once connected,
     the client must identify itself:
     
-    HELO [<username>]
+    HELO <username>
     
     ->
     
-    HELO <servername> <username> <server-addr> <server-port>
-
-    If the client doesn't supply <username>, the server will compute
-    one and return it.
+    HELO <username> <server-addr> <server-port>
 
     Possible errors: INVALIDNAME
 
@@ -88,6 +85,8 @@ Document Conventions
 
        QUIT
 
+       Disconnects the client from the server.
+
     1.2.5. Version
 
        VERSION <client-version-number>
@@ -163,7 +162,7 @@ Document Conventions
 
        Possible errors: NOTINGAME
     
-    1.5.3. Making a move
+    1.4.3. Making a move
 
        MOVE <number>
     
@@ -174,9 +173,9 @@ Document Conventions
        <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
     
@@ -261,7 +260,7 @@ Document Conventions
     
        ERROR INVALIDNAME
     
-       All names must be unique.
+       All names must be of non-zero length and must be unique.
 
        Possibly returned by: HELO
 
@@ -287,7 +286,7 @@ Document Conventions
     
        A non-numeric value was supplied where a number was required
        
-    3.2.4. Not color
+    3.2.4. Not a grid number
     
        ERROR NOTGRID
     
@@ -301,7 +300,7 @@ Document Conventions
 
     Errors from game management commands
     
-    3.3.1. No such game
+    3.4.1. No such game
        
        ERROR NOGAME