Merge from vendor branch LIBPCAP:
[games.git] / games / snake / snake / snake.6
1 .\" Copyright (c) 1980, 1993
2 .\"     The Regents of the University of California.  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     8.1 (Berkeley) 5/31/93
33 .\" $FreeBSD: src/games/snake/snake/snake.6,v 1.4.2.1 2001/07/22 11:01:23 dd Exp $
34 .\" $DragonFly: src/games/snake/snake/snake.6,v 1.3 2006/09/03 23:23:10 pavalos Exp $
35 .\"
36 .TH SNAKE 6 "May 31, 1993"
37 .UC 4
38 .SH NAME
39 snake, snscore \- display chase game
40 .SH SYNOPSIS
41 .B snake
42 [
43 .B -w width
44 ] [
45 .B -l length
46 ] [
47 .B -t
48 ]
49 .br
50 .B snscore
51 .SH DESCRIPTION
52 Snake is a display-based game which must be played on a CRT terminal.
53 The object of the game is to make as much money as possible without
54 getting eaten by the snake.  The
55 .B \-l
56 and
57 .B \-w
58 options allow you to specify the length and width of the field.
59 By default the entire screen is used.  The
60 .B \-t
61 option makes the game assume you are on a slow terminal.
62 .PP
63 You are represented on the screen by an I.
64 The snake is 6 squares long and is represented by S's.
65 The money is $, and an exit is #.
66 Your score is posted in the upper left hand corner.
67 .PP
68 You can move around using the same conventions as vi(1),
69 the h, j, k, and l keys work, as do the arrow keys.
70 Other possibilities include:
71 .IP sefc
72 These keys are like hjkl but form a directed pad around the d key.
73 .IP HJKL
74 These keys move you all the way in the indicated direction to the
75 same row or column as the money.  This does
76 .I not
77 let you jump away from the snake, but rather saves you from having
78 to type a key repeatedly.  The snake still gets all his turns.
79 .IP SEFC
80 Likewise for the upper case versions on the left.
81 .IP ATPB
82 These keys move you to the four edges of the screen.
83 Their position on the keyboard is the mnemonic, e.g.
84 P is at the far right of the keyboard.
85 .IP x
86 This lets you quit the game at any time.
87 .IP p
88 Points in a direction you might want to go.
89 .IP w
90 Space warp to get out of tight squeezes, at a price.
91 .PP
92 To earn money, move to the same square the money is on.
93 A new $ will appear when you earn the current one.
94 As you get richer, the snake gets hungrier.
95 To leave the game, move to the exit (#).
96 .PP
97 A record is kept of the personal best score of each player.
98 Scores are only counted if you leave at the exit,
99 getting eaten by the snake is worth nothing.
100 .PP
101 As in pinball, matching the last digit of your score to the number
102 which appears after the game is worth a bonus.
103 .PP
104 To see who wastes time playing snake, run
105 .I snscore .
106 .SH FILES
107 .nf
108 .ta \w'/var/games/snakerawscores 'u
109 /var/games/snakerawscores       database of personal bests
110 /var/games/snake.log    log of games played
111 .DT
112 .fi
113 .SH BUGS
114 When playing on a small screen,
115 it's hard to tell when you hit the edge of the screen.
116 .PP
117 The scoring function takes into account the size of the screen.
118 A perfect function to do this equitably has not been devised.