1 .\" $NetBSD: snake.6,v 1.13 2016/03/12 03:13:52 dholland Exp $
3 .\" Copyright (c) 1980, 1993
4 .\" The Regents of the University of California. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. Neither the name of the University nor the names of its contributors
15 .\" may be used to endorse or promote products derived from this software
16 .\" without specific prior written permission.
18 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
19 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
22 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" @(#)snake.6 8.1 (Berkeley) 5/31/93
38 .Nd display chase game
47 is a display-based game.
48 The object of the game is to make as much money as possible without
49 getting eaten by the snake.
54 options allow you to specify the length and width of the field.
55 By default the entire screen is used.
58 option makes the game assume you are on a slow terminal.
60 You are represented on the screen by an I.
61 The snake is 6 squares long and is represented by s's with an S at its head.
62 The money is $, and an exit is #.
63 Your score is posted in the upper left hand corner.
65 You can move around using the same conventions as
73 keys work, as do the arrow keys.
74 Other possibilities include:
75 .Bl -tag -width indent
77 These keys are like hjkl but form a directed pad around the d key.
79 These keys move you all the way in the indicated direction to the
80 same row or column as the money.
83 let you jump away from the snake, but rather saves you from having
84 to type a key repeatedly.
85 The snake still gets all his turns.
87 Likewise for the upper case versions on the left.
89 These keys move you to the four edges of the screen.
90 Their position on the keyboard is the mnemonic, e.g.
91 P is at the far right of the keyboard.
93 This lets you quit the game at any time.
95 Points in a direction you might want to go.
97 Space warp to get out of tight squeezes, at a price.
100 To earn money, move to the same square the money is on.
101 A new $ will appear when you earn the current one.
102 As you get richer, the snake gets hungrier.
103 To leave the game, move to the exit (#).
105 A record is kept of the personal best score of each player.
106 Scores are only counted if you leave at the exit,
107 getting eaten by the snake is worth nothing.
109 As in pinball, matching the last digit of your score to the number
110 which appears after the game is worth a bonus.
112 To see who wastes time playing snake, run
115 .Bl -tag -width /var/games/snakerawscores -compact
116 .It Pa /var/games/snakerawscores
117 database of personal bests
118 .It Pa /var/games/snake.log
122 When playing on a small screen,
123 it's hard to tell when you hit the edge of the screen.
125 The scoring function takes into account the size of the screen.
126 A perfect function to do this equitably has not been devised.