Merge from vendor branch DIFFUTILS:
[dragonfly.git] / games / robots / robots.6
1 .\" Copyright (c) 1991, 1993
2 .\"     The Regents of the University of California.  All rights reserved.
3 .\"
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
6 .\" are met:
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\"    notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\"    notice, this list of conditions and the following disclaimer in the
11 .\"    documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\"    must display the following acknowledgement:
14 .\"     This product includes software developed by the University of
15 .\"     California, Berkeley and its contributors.
16 .\" 4. Neither the name of the University nor the names of its contributors
17 .\"    may be used to endorse or promote products derived from this software
18 .\"    without specific prior written permission.
19 .\"
20 .\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
21 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
22 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23 .\" ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
24 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 .\" SUCH DAMAGE.
31 .\"
32 .\"     @(#)robots.6    8.1 (Berkeley) 5/31/93
33 .\" $FreeBSD: src/games/robots/robots.6,v 1.3.2.1 2001/08/17 08:28:04 roberto Exp $
34 .\" $DragonFly: src/games/robots/robots.6,v 1.4 2006/12/12 01:47:23 swildner Exp $
35 .\"
36 .Dd May 31, 1993
37 .Os
38 .Dt ROBOTS 6
39 .Sh NAME
40 .Nm robots
41 .Nd fight off villainous robots
42 .Sh SYNOPSIS
43 .Nm
44 .Op Fl sjta
45 .Op Ar scorefile
46 .Sh DESCRIPTION
47 The
48 .Nm
49 game pits you against evil robots, who are trying to kill you (which is why
50 they are evil).
51 Fortunately for you, even though they are evil, they are not very bright
52 and have a habit of bumping into each other, thus destroying themselves.
53 In order to survive, you must get them to kill each other off, since you
54 have no offensive weaponry.
55 .Pp
56 Since you are stuck without offensive weaponry, you are endowed with one
57 piece of defensive weaponry: a teleportation device.
58 When two robots run into each other or a junk pile, they die.
59 If a robot runs into you, you die.
60 When a robot dies, you get 10 points, and when all the robots die,
61 you start on the next field.
62 This keeps up until they finally get you.
63 .Pp
64 Robots are represented on the screen by a
65 .Sq \&+ ,
66 the junk heaps from their collisions by a
67 .Sq \(** ,
68 and you
69 (the good guy)
70 by a
71 .Sq @ .
72 .Pp
73 The commands are:
74 .Bl -tag -width indent -compact
75 .It Ic h
76 move one square left
77 .It Ic l
78 move one square right
79 .It Ic k
80 move one square up
81 .It Ic j
82 move one square down
83 .It Ic y
84 move one square up and left
85 .It Ic u
86 move one square up and right
87 .It Ic b
88 move one square down and left
89 .It Ic n
90 move one square down and right
91 .It Ic \&.
92 (also space) do nothing for one turn
93 .It Ic HLKJYUBN
94 run as far as possible in the given direction
95 .It Ic \*[Gt]
96 do nothing for as long as possible
97 .It Ic t
98 teleport to a random location
99 .It Ic w
100 wait until you die or they all do
101 .It Ic q
102 quit
103 .It Ic ^L
104 redraw the screen
105 .El
106 .Pp
107 All commands can be preceded by a count.
108 .Pp
109 If you use the
110 .Sq Ic w
111 command and survive to the next level, you will get a bonus of 10%
112 for each robot which died after you decided to wait.
113 If you die, however, you get nothing.
114 For all other commands, the program will save you from typos
115 by stopping short of being eaten.
116 However, with
117 .Sq Ic w
118 you take the risk of dying by miscalculation.
119 .Pp
120 Only five scores are allowed per user on the score file.
121 If you make it into the score file, you will be shown the list at the end
122 of the game.
123 If an alternate score file is specified, that will be used instead of the
124 standard file for scores.
125 .Pp
126 The options are
127 .Bl -tag -width indent
128 .It Fl s
129 Don't play, just show the score file.
130 .It Fl j
131 Jump, i.e.,
132 when you run, don't show any intermediate positions; only show things at
133 the end.
134 This is useful on slow terminals.
135 .It Fl t
136 Teleport automatically when you have no other option.
137 This is a little disconcerting until you get used to it, and then it is
138 very nice.
139 .It Fl a
140 Advance into the higher levels directly, skipping the lower, easier levels.
141 .El
142 .Sh FILES
143 .Bl -tag -width ".Pa /var/games/robots_roll" -compact
144 .It Pa /var/games/robots_roll
145 the score file
146 .El
147 .Sh AUTHORS
148 .An Ken Arnold
149 .Sh BUGS
150 Bugs?
151 You
152 .Em crazy ,
153 man?!?