WORMS(6) Games Manual WORMS(6)

wormsanimate worms on a display terminal

worms [-CfHrt] [-d delay] [-l length] [-n number] [-S seed]

worms is a UNIX version of the DEC-2136 program “worms”.

The options are as follows:

Use colours, if available, to make the worms easier to distinguish.

delay
Specifies a delay, in milliseconds, between each update. This is useful for fast terminals. Reasonable values are around 20-200; the default is 20.

Makes a “field” for the worm(s) to eat.

Display the head of the worm differently than its body.

length
 
minmax
Specifies the length of each worm; the default is 16, the minimum is 2. In the second form, worm lengths are randomly chosen between min (which must be at least 2) and max. The max worm length will be reduced if required by the screen size and the number of worms selected. This option overrides any earlier -r.

number
Specifies the number of worms; the default is 3. There must be at least one.

Use random lengths for the worms, within a range of sizes chosen to suit the screen size. Note this option overrides any earlier -l.

seed
Provide an integer seed for the random number generator. Specifying zero (0, the default) causes a random seed to be used.

Makes each worm leave a trail behind it.

The maximum length, and number, of worms depends upon the screen size, though the length can never exceed 1024. If the screen is particularly small, even the defaults for those may be too large. Screens with less than 3 rows or columns cannot be handled, nor can ones with insufficient total space.

April 26, 2023 NetBSD 10.99