Login or Register to Ask a Question and Join Our Community

Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

snake(6) [suse man page]

SNAKE(6)							 BSD Games Manual							  SNAKE(6)

snake, snscore -- display chase game SYNOPSIS
snake [-w width] [-l length] [-t] snscore DESCRIPTION
snake is a display-based game which must be played on a CRT terminal. The object of the game is to make as much money as possible without getting eaten by the snake. The -l and -w options allow you to specify the length and width of the field. By default the entire screen is used. The -t option makes the game assume you are on a slow terminal. You are represented on the screen by an I. The snake is 6 squares long and is represented by s's with an S at its head. The money is $, and an exit is #. Your score is posted in the upper left hand corner. You can move around using the same conventions as vi(1), the h, j, k, and l keys work, as do the arrow keys. Other possibilities include: sefc These keys are like hjkl but form a directed pad around the d key. HJKL These keys move you all the way in the indicated direction to the same row or column as the money. This does not let you jump away from the snake, but rather saves you from having to type a key repeatedly. The snake still gets all his turns. SEFC Likewise for the upper case versions on the left. ATPB These keys move you to the four edges of the screen. Their position on the keyboard is the mnemonic, e.g. P is at the far right of the keyboard. x This lets you quit the game at any time. p Points in a direction you might want to go. w Space warp to get out of tight squeezes, at a price. To earn money, move to the same square the money is on. A new $ will appear when you earn the current one. As you get richer, the snake gets hungrier. To leave the game, move to the exit (#). A record is kept of the personal best score of each player. Scores are only counted if you leave at the exit, getting eaten by the snake is worth nothing. As in pinball, matching the last digit of your score to the number which appears after the game is worth a bonus. To see who wastes time playing snake, run snscore. FILES
/var/games/snakerawscores database of personal bests /var/games/snake.log log of games played BUGS
When playing on a small screen, it's hard to tell when you hit the edge of the screen. The scoring function takes into account the size of the screen. A perfect function to do this equitably has not been devised. BSD
May 31, 1993 BSD

Check Out this Related Man Page

TETRIS(6)							 BSD Games Manual							 TETRIS(6)

tetris -- the game of tetris SYNOPSIS
tetris [-ps] [-k keys] [-l level] DESCRIPTION
The tetris command runs display-based game which must be played on a CRT terminal. The object is to fit the shapes together forming complete rows, which then vanish. When the shapes fill up to the top, the game ends. You can optionally select a level of play, or custom-select control keys. The default level of play is 2. The default control keys are as follows: j move left k rotate 1/4 turn counterclockwise l move right <space> drop p pause q quit The options are as follows: -k The default control keys can be changed using the -k option. The keys argument must have the six keys in order, and, remember to quote any space or tab characters from the shell. For example: tetris -l 2 -k 'jkl pq' will play the default games, i.e. level 2 and with the default control keys. The current key settings are displayed at the bottom of the screen during play. -l Select a level of play. -s Display the top scores. -p Switch on previewing of the shape that will appear next. PLAY
At the start of the game, a shape will appear at the top of the screen, falling one square at a time. The speed at which it falls is deter- mined directly by the level: if you select level 2, the blocks will fall twice per second; at level 9, they fall 9 times per second. (As the game goes on, things speed up, no matter what your initial selection.) When this shape ``touches down'' on the bottom of the field, another will appear at the top. You can move shapes to the left or right, rotate them counterclockwise, or drop them to the bottom by pressing the appropriate keys. As you fit them together, completed horizontal rows vanish, and any blocks above fall down to fill in. When the blocks stack up to the top of the screen, the game is over. SCORING
You get one point for every block you fit into the stack, and one point for every space a block falls when you hit the drop key. (Dropping the blocks is therefore a good way to increase your score.) Your total score is the product of the level of play and your accumulated points -- 200 points on level 3 gives you a score of 600. Each player gets at most one entry on any level, for a total of nine scores in the high scores file. Players who no longer have accounts are limited to one score. Also, scores over 5 years old are expired. The exception to these conditions is that the highest score on a given level is always kept, so that following generations can pay homage to those who have wasted serious amounts of time. The score list is produced at the end of the game. The printout includes each player's overall ranking, name, score, and how many points were scored on what level. Scores which are the highest on a given level are marked with asterisks ``*''. FILES
/var/games/tetris.scores high score file AUTHORS
Adapted from a 1989 International Obfuscated C Code Contest winner by Chris Torek and Darren F. Provine. Manual adapted from the original entry written by Nancy L. Tinkham and Darren F. Provine. Code for previewing next shape added by Hubert Feyrer in 1999. BUGS
The higher levels are unplayable without a fast terminal connection. BSD
May 31, 1993 BSD
Man Page

Featured Tech Videos