From 66fa000def72aef690cc7522d905a021092e77c5 Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 5 Nov 2005 15:41:55 +0000 Subject: [PATCH] Quick pass to make it more like tic-tac-toe --- far from complete. --- PROTOCOL | 534 ++++++++----------------------------------------------- 1 file changed, 74 insertions(+), 460 deletions(-) diff --git a/PROTOCOL b/PROTOCOL index a97a176..13391ff 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: @@ -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