Commit | Line | Data |
---|---|---|
15637ed4 RG |
1 | .\" Copyright (c) 1980 The Regents of the University of California. |
2 | .\" All rights reserved. | |
3 | .\" | |
4 | .\" Redistribution and use in source and binary forms, with or without | |
5 | .\" modification, are permitted provided that the following conditions | |
6 | .\" are met: | |
7 | .\" 1. Redistributions of source code must retain the above copyright | |
8 | .\" notice, this list of conditions and the following disclaimer. | |
9 | .\" 2. Redistributions in binary form must reproduce the above copyright | |
10 | .\" notice, this list of conditions and the following disclaimer in the | |
11 | .\" documentation and/or other materials provided with the distribution. | |
12 | .\" 3. All advertising materials mentioning features or use of this software | |
13 | .\" must display the following acknowledgement: | |
14 | .\" This product includes software developed by the University of | |
15 | .\" California, Berkeley and its contributors. | |
16 | .\" 4. Neither the name of the University nor the names of its contributors | |
17 | .\" may be used to endorse or promote products derived from this software | |
18 | .\" without specific prior written permission. | |
19 | .\" | |
20 | .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND | |
21 | .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | |
22 | .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | |
23 | .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE | |
24 | .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | |
25 | .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | |
26 | .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | |
27 | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | |
28 | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | |
29 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | |
30 | .\" SUCH DAMAGE. | |
31 | .\" | |
32 | .\" @(#)snake.6 6.4 (Berkeley) 6/23/90 | |
33 | .\" | |
34 | .TH SNAKE 6 "June 23, 1990" | |
35 | .UC 4 | |
36 | .SH NAME | |
37 | snake, snscore \- display chase game | |
38 | .SH SYNOPSIS | |
39 | .B snake | |
40 | [ | |
41 | .B -w width | |
42 | ] [ | |
43 | .B -l length | |
44 | ] | |
45 | .br | |
46 | .B snscore | |
47 | .SH DESCRIPTION | |
48 | Snake is a display-based game which must be played on a CRT terminal. | |
49 | The object of the game is to make as much money as possible without | |
50 | getting eaten by the snake. The | |
51 | .B \-l | |
52 | and | |
53 | .B \-w | |
54 | options allow you to specify the length and width of the field. | |
55 | By default the entire screen (except for the last column) is used. | |
56 | .PP | |
57 | You are represented on the screen by an I. | |
58 | The snake is 6 squares long and is represented by S's. | |
59 | The money is $, and an exit is #. | |
60 | Your score is posted in the upper left hand corner. | |
61 | .PP | |
62 | You can move around using the same conventions as vi(1), | |
63 | the h, j, k, and l keys work, as do the arrow keys. | |
64 | Other possibilities include: | |
65 | .IP sefc | |
66 | These keys are like hjkl but form a directed pad around the d key. | |
67 | .IP HJKL | |
68 | These keys move you all the way in the indicated direction to the | |
69 | same row or column as the money. This does | |
70 | .I not | |
71 | let you jump away from the snake, but rather saves you from having | |
72 | to type a key repeatedly. The snake still gets all his turns. | |
73 | .IP SEFC | |
74 | Likewise for the upper case versions on the left. | |
75 | .IP ATPB | |
76 | These keys move you to the four edges of the screen. | |
77 | Their position on the keyboard is the mnemonic, e.g. | |
78 | P is at the far right of the keyboard. | |
79 | .IP x | |
80 | This lets you quit the game at any time. | |
81 | .IP p | |
82 | Points in a direction you might want to go. | |
83 | .IP w | |
84 | Space warp to get out of tight squeezes, at a price. | |
85 | .PP | |
86 | To earn money, move to the same square the money is on. | |
87 | A new $ will appear when you earn the current one. | |
88 | As you get richer, the snake gets hungrier. | |
89 | To leave the game, move to the exit (#). | |
90 | .PP | |
91 | A record is kept of the personal best score of each player. | |
92 | Scores are only counted if you leave at the exit, | |
93 | getting eaten by the snake is worth nothing. | |
94 | .PP | |
95 | As in pinball, matching the last digit of your score to the number | |
96 | which appears after the game is worth a bonus. | |
97 | .PP | |
98 | To see who wastes time playing snake, run | |
78ed81a3 | 99 | .I snscore |
100 | \&. | |
15637ed4 RG |
101 | .SH FILES |
102 | .nf | |
78ed81a3 | 103 | .ta \w'/var/games/snakerawscores 'u |
104 | /var/games/snakerawscores database of personal bests | |
105 | /var/games/snake.log log of games played | |
15637ed4 RG |
106 | .DT |
107 | .fi | |
108 | .SH BUGS | |
109 | .PP | |
110 | When playing on a small screen, | |
111 | it's hard to tell when you hit the edge of the screen. | |
112 | .PP | |
113 | The scoring function takes into account the size of the screen. | |
114 | A perfect function to do this equitably has not been devised. |