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