]> git.cworth.org Git - ttt/blobdiff - PROTOCOL
Add a dependency of ttt-client.c on ttt-lex.h to fix the build.
[ttt] / PROTOCOL
index ad6369c25857f591422abe21bbdefe83cc5b5108..91c8545b88ac96f482ca5c27893a3715ce10ba07 100644 (file)
--- a/PROTOCOL
+++ b/PROTOCOL
@@ -149,7 +149,7 @@ Document Conventions
 
        ACCEPT
 
-       Possible errors: NO_NAME_SET, NO_USER
+       Possible errors: NO_NAME_SET, NO_USER, NO_INVITE
 
     1.3.3. Retracting an invitiation
 
@@ -159,7 +159,7 @@ Document Conventions
 
        RETRACT
 
-       Possible errors: NO_NAME_SET, NO_USER
+       Possible errors: NO_NAME_SET, NO_USER, NO_INVITE
 
     1.3.3. Declining an invitation
 
@@ -169,7 +169,7 @@ Document Conventions
 
        DECLINE
 
-       Possible errors: NO_NAME_SET, NO_USER
+       Possible errors: NO_NAME_SET, NO_USER, NO_INVITE
 
 1.4. In-game commands
 
@@ -201,7 +201,7 @@ Document Conventions
         _|X|_
         X|O|O"
     
-       Possible errors: NO_NAME_SET, NO_GAME, NOT_IN_GAME
+       Possible errors: NO_NAME_SET, NO_GAME
     
     1.4.2. Part
     
@@ -213,7 +213,7 @@ Document Conventions
     
        Departs the specified game
 
-       Possible errors: NO_NAME_SET, NO_GAME, NOT_IN_GAME
+       Possible errors: NO_NAME_SET, NO_GAME
     
     1.4.3. Making a move
 
@@ -230,8 +230,8 @@ Document Conventions
        3|4|5
        6|7|8
     
-       Possible errors: NO_NAME_SET, NO_GAME, NOT_IN_GAME,
-       NOT_PLAYING, NOT_YOUR_MOVE, NOT_GRID
+       Possible errors: NO_NAME_SET, NO_GAME, NOT_PLAYING,
+       NOT_YOUR_MOVE, NOT_GRID, NOT_VALID_MOVE
     
 2. Asynchronous notification.  
 
@@ -376,7 +376,7 @@ Document Conventions
        number.
 
        Possibly returned by: MOVE
-    
+
 3.3. Global command errors.
 
     There are no global command errors from any of the global
@@ -386,7 +386,16 @@ Document Conventions
 
     Errors from game management commands
     
-    3.4.1. No such game
+    3.4.1. No invitiation from/for specified user
+
+       ERROR NO_INVITE
+
+       An invitiation action was attempted where no invitation
+       exists.
+
+       Possibly returned by: ACCEPT, RETRACT, DECLINE
+
+    3.4.2. No such game
        
        ERROR NO_GAME
        
@@ -427,3 +436,11 @@ Document Conventions
            A move was submitted during the other player's turn.
 
            Possibly returned by: MOVE
+
+       3.6.2.2. Not a valid move
+
+           ERROR NOT_VALID_MOVE
+
+           A move was submitted for a cell that is occupied.
+
+           Possibly returned by: MOVE