X-Git-Url: https://git.deb.at/w?p=pkg%2Fnetris.git;a=blobdiff_plain;f=robot_desc;h=3c9bacac05b92566129f129edc556fb59594207c;hp=01c697002a89b5db72576f33dceeafd12243375e;hb=HEAD;hpb=89d91b6cfd98e514b3e418526ba854d00beb876c diff --git a/robot_desc b/robot_desc index 01c6970..3c9baca 100644 --- a/robot_desc +++ b/robot_desc @@ -1,4 +1,4 @@ -$Id: robot_desc,v 1.3 1996/02/09 08:22:16 mhw Exp $ +$Id: robot_desc,v 1.4 1999/05/16 06:56:30 mhw Exp $ GENERAL PROTOCOL @@ -12,7 +12,7 @@ spaces. The first token in a line is the name of the command. The robot should ignore commands which it doesn't recognize. The protocol may be extended by adding extra commands without incrementing the version -number. The version number will only be increased when the command cannot +number. The version number will only be increased when a command cannot be safely ignored. Netris will also ignore commands which it doesn't recognize, for the same @@ -61,7 +61,7 @@ NewPiece -------------- This command is never sent in "fair" robot mode. -Everytime a new piece is created, this command is sent to the robot. +Every time a new piece is created, this command is sent to the robot. is a positive integer uniquely identifying the piece. should be sent as a parameter to each movement command (sent to Netris) in order to prevent accidental movement of the wrong piece. @@ -84,7 +84,7 @@ view of the board is incorrect until the "TimeStamp". is an integer from 0 to boardHeight-1. 0 is the bottom row. ... are integers separated by spaces, one for each column. -"0" indicates an empty square. Positive integers indicates blocks. +"0" indicates an empty square. Positive integers indicate blocks. Currently only "1" is used, but in the future there may be special kinds of blocks indicated by higher numbers. Negative integers indicate part of the currently falling piece. For each block, the absolute value of the @@ -116,7 +116,7 @@ Pause our side. is 0 or 1, indicating whether any player other than our side has paused the game. If either is 1, the game is paused. -You may actually receive this command even when none of the flags change. +You may actually receive this command even when neither of the flags change. NORMAL GAME (robot --> Netris) @@ -151,8 +151,8 @@ long to fit on the screen may be truncated. EXAMPLE ======= Here's a portion of an example log generated by the sample robot. The -sample robot generates a log file in "log" if the "-l" is given to sr -(eg "netris -r 'sr -l'"). +sample robot generates a log file in "log" if the "-l" option is given +to sr (eg "netris -r 'sr -l'"). In this log file, every line is preceeded by two characters. Lines sent from Netris to the robot are preceeded by two spaces " ", and