manual page distributed with 4.2BSD
[unix-history] / usr / src / games / worm / worm.6
CommitLineData
660aaee1
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
832f78c7 5.\" @(#)worm.6 5.1 (Berkeley) %G%
660aaee1 6.\"
832f78c7 7.TH WORM 6 "2 April 1981"
660aaee1
KM
8.UC 4
9.SH NAME
10worm \- play the growing worm game
11.SH SYNOPSIS
832f78c7 12.B /usr/games/worm
660aaee1
KM
13[
14.I size
15]
16.SH DESCRIPTION
17.PP
18In
19.I worm,
20you are a little worm, your body is the "o"'s on the screen
21and your head is the "@". You move with the hjkl keys (as in the game
22snake). If you don't press any keys, you continue in the direction you
23last moved. The upper case HJKL keys move you as if you had pressed
832f78c7 24several (9 for HL and 5 for JK) of the corresponding lower case key
660aaee1
KM
25(unless you run into a digit, then it stops).
26.PP
27On the screen you will see a digit, if your worm eats the digit is will
28grow longer, the actual amount longer depends on which digit it was
29that you ate. The object of the game is to see how long you can make
30the worm grow.
31.PP
32The game ends when the worm runs into either the sides of the screen,
33or itself. The current score (how much the worm has grown) is kept in
34the upper left corner of the screen.
35.PP
36The optional argument, if present, is the initial length of the worm.
37.SH BUGS
38If the initial length of the worm is set to less than one or more
39than 75, various strange things happen.