X-Git-Url: https://git.cworth.org/git?p=ttt;a=blobdiff_plain;f=PROTOCOL;h=fe8905b2d0117639ff4089dea368429b18456294;hp=a97a176c5f7f87afbc4bedb050261007723d624a;hb=306a4054b4a0732ff42ab2548ffc020043ab3cf9;hpb=7e5b08180753d07354b2d586b8c78fd4d51c5e0f diff --git a/PROTOCOL b/PROTOCOL index a97a176..fe8905b 100644 --- a/PROTOCOL +++ b/PROTOCOL @@ -1,19 +1,20 @@ - Ricochet Robots Game Protocol (RRGP) - Version 0.1.2 - 2003-5-31 + Tic-tac-toe Protocol (TTTP) + Version 0.0.1 + 2005-11-05 - Keith Packard Carl Worth - keithp@keithp.com carl@theworths.org + Carl Worth Richard Worth Kevin Worth + carl@theworths.org richard@theworths.org kevin@theworths.org Introduction -RRGP is a network protocol for playing the Ricochet Robots game. It permits -a single server to host multiple games with named participants. The +TTTP is a network protocol for playing the game tic-tac-toe. It permits +a single server to host multiple games with named participants. The protocol is designed so that people can play using only telnet, but it is expected that graphical interfaces will be able to drive the protocol as well. -RRGP borrows ideas from other network protocols like SMTP using a +TTTP borrows heavily from RRGP (Ricochet Robot Game Protocol) by Keith +Packard and indirectly from other network protocols like SMTP using a synchronous command interface. Document Conventions @@ -36,7 +37,7 @@ Document Conventions 1.1 Connection setup - The RRGP server has no well defined port; agreement on which port to + The TTTP server has no well defined port; agreement on which port to use must be done through some external mechanism. Once connected, the client must identify itself: @@ -44,7 +45,7 @@ Document Conventions -> - HELO + HELO If the client doesn't supply , the server will compute one and return it. @@ -63,15 +64,7 @@ Document Conventions lists connected users and the number of games they've won. - 1.2.2. Listing available games - - GAMES - - -> - - GAMES ... - - 1.2.3. Message + 1.2.2. Message MESSAGE @@ -79,7 +72,7 @@ Document Conventions MESSAGE - 1.2.4. Help + 1.2.3. Help HELP { } @@ -87,7 +80,7 @@ Document Conventions detailed help on a specific command, otherwise displays an overview of all commands. - 1.2.5. Quit + 1.2.4. Quit QUIT @@ -95,7 +88,7 @@ Document Conventions QUIT - 1.2.6. Version + 1.2.5. Version VERSION @@ -111,283 +104,82 @@ Document Conventions 1.3. Game management commands - 1.3.1. Listing players in a game - - PLAYERS + 1.3.1. Inviting a player to play a game - -> - - PLAYERS ... - - Possible errors: NOGAME - - 1.3.2. Listing watchers of a game - - WATCHERS + INVITE -> - WATCERS ... - - Possible errors: NOGAME - - 1.3.3. Get game information - - GAMEINFO - - -> - - GAMEINFO