Networked version of tetris
netris [\|-wFDSCHR\|] [\|-c host\|] [\|-p port\|] [\|-k keys\|] [\|-i sec\|] [\|-r robot\|] [\|-s seed\|]
The object of the game Tetris is to fit the shapes together forming complete rows, which then vanish. When the shapes fill up to the top, the game ends. This version of Tetris can be played against other people over a network.
Wait for connection from another host running netris.
Initiate connection to waiting netris running on host.
Set the port number to use for connecting to netris, the default port is 9284.
Remap keys, the argument is a prefix of the string containing the keys in order: left, rotate, right, drop, down-faster, toggle-spying, pause, faster, redraw and new game. Use the "^" character to prefixes controls. The default is to use "jkl mspf^ln".
Set the step-down interval, in seconds.
Execute robot (a command) as a robot controlling the game instead of the keyboard.
Use fair robot interface.
Start with given random seed.
Drops go into drop mode, this means that sliding off a cliff after a drop causes another drop automatically.
Disable inverse/bold/color for slow terminals.
Show distribution and warranty information.
Show the rules of the game.
It's just like normal Tetris except that when you clear more than one row with a single piece, the other player's board is moved up and junk rows are added to the bottom. If you clear 2, 3 or 4 rows, 1, 2 or 4 junk rows are added to your opponent's board, respectively. The junk rows have exactly one empty column. For each group of junk rows given, the empty columns will line up. This is intentional.
The longest surviving player wins the game.
This mode is currently very boring, because there's no scoring and it never gets any faster. This will be rectified at some point. I'm not very motivated to do it right now because I'm sick of one player Tetris. For now, use the "f" key (by default) to make the game go faster. Speed-ups cannot be reversed for the remainder of the game.