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