]> git.lizzy.rs Git - plan9front.git/blob - sys/man/1/games
merge
[plan9front.git] / sys / man / 1 / games
1 .TH GAMES 1
2 .SH NAME
3 4s, 5s, blabs, catclock, doom, festoon, geigerstats, glendy, juggle, life, mandel, mahjongg, memo, midi, mines, mole, packet, sokoban, sudoku \- time wasters
4 .SH SYNOPSIS
5 .B games/4s
6 .br
7 .B games/5s
8 .br
9 .B games/blabs
10 [
11 .B -i
12 ] [
13 .B -k
14 .I k-floor
15 ] [
16 .B -n
17 .I track-length
18 ] [
19 .B -w
20 .I track-width
21 ] [
22 .B -x
23 .I gravity-x
24 ] [
25 .B -y
26 .I gravity-y
27 ]
28 .br
29 .B games/catclock
30 .br
31 .B games/doom
32 .br
33 .B games/festoon
34 [
35 .B -pet
36 ] [
37 .I sentences
38 [
39 .I percent-invented-nouns
40 ] ]
41 .br
42 .B games/geigerstats
43 [
44 .B -d
45 .I dev
46 ] [
47 .B -v
48 .I vol
49 ]
50 .br
51 .B games/glendy
52 .br
53 .B games/juggle
54 [
55 .B -d
56 .I delay
57 ] [
58 .B -h
59 .I hands
60 ] [
61 .I start
62 ]
63 .I pattern
64 .br
65 .B games/life
66 .I startfile
67 .br
68 .B games/mandel
69 .br
70 .B games/mahjongg
71 [
72 .B -c
73 ] [
74 .B -f
75 ] [
76 .B -b
77 .I background
78 ] [
79 .B -t 
80 .I tileset
81 ] [
82 .B -l
83 .I layout
84 ]
85 .br
86 .B games/memo
87 [
88 .B -h
89 ]
90 .br
91 .B games/midi
92 .I midifile
93 .br
94 .B games/mines
95 .br
96 .B games/mole
97 .br
98 .B games/packet
99 [
100 .B -n
101 .I nnode
102 ] [
103 .B -o
104 .I speed-offset
105 ] [
106 .B -d
107 .I decay
108 ] [
109 .B -b
110 .I speed-bonus
111 ] [
112 .B -r
113 .I regen-rate
114 ] [
115 .B -t
116 .I thick-factor
117 ] [
118 .B -T
119 .I display-threshold
120 ]
121 .br
122 .B games/sokoban
123 [
124 .I level
125 ]
126 .br
127 .B games/sudoku
128 .SH DESCRIPTION
129 There are a few games in
130 .BR /bin/games :
131 .TF mahjongg
132 .PD
133 .TP
134 .BR 4s , " 5s"
135 Try to fill complete rows using 4-square or 5-square tiles.
136 Move tiles left or right by moving the mouse.
137 Rotate tiles with buttons 1 and 3.
138 Drop tiles for more points with button 2 or the space bar.
139 Keys
140 .LR a
141 and 
142 .LR j
143 move left,
144 .LR s
145 and 
146 .LR k
147 rotate left,
148 .LR d
149 and 
150 .LR l
151 rotate right,
152 .LR f
153 and 
154 .LR ;
155 move right.
156 .LR z ,
157 .LR p
158 and
159 .LR Esc
160 toggle suspend/resume.
161 .LR q ,
162 .LR Del
163 and
164 .LR control-D
165 quit.
166 .TP
167 .B doom
168 This is a port of id Software's DOOM I and II engine.
169 In DOOM, players assume the role of a space marine, who became
170 popularly known as "Doomguy", fighting their way through hordes
171 of invading demons from Hell. Game data (WAD-files) for
172 .B doom
173 are not part of the distribution, but free WAD-files,
174 like the shareware version, can be obtained on the net.
175 .TP
176 .B festoon
177 Generate an official-looking but utterly nonsensical bureaucratic report as
178 .L "pic | eqn | tbl | troff -mm"
179 input.
180 Options
181 .BR -p ,
182 .B -e
183 and
184 .B -t
185 add gibberish diagrams, equations and tables.
186 .TP
187 .B glendy
188 Don't let the rabbit escape.
189 .TP
190 .B juggle
191 Display the juggling
192 .I pattern
193 using the optional initial
194 .I start
195 pattern.
196 The number of hands involved (default 2) can be specified with
197 .BR -h ,
198 and
199 .I delay
200 can be used to speed up or slow down the action (default is 20).
201 Try the pattern 333333441333333 or 333353505151512333333
202 or YWUSQOMKIGECA
203 (see
204 .BR http://seehuhn.de/jong/theory.html ).
205 .TP
206 .B life
207 Play the game of Life, given an initial position.
208 There is a library of interesting initial positions;
209 the library is consulted if
210 .I startfile
211 cannot be found.
212 .TP
213 .B mahjongg
214 Remove all tiles
215 from the board. Click on tiles with the same face that
216 are not blocked by others. A blocked tile is one that is partially or
217 fully covered on top or has neighbouring tiles to the left and right.
218 The game finishes when either all tiles are gone or there are no
219 more moves left. The arguments are for changing background
220 .RB (-b),
221 tile
222 .RB (-t)
223 and layout
224 .RB (-l)
225 images;
226 .RB -c
227 selects a true-color buffer image, for use with
228 drawterm or in case selecting a tile obscures it completely;
229 .RB -f
230 causes mahjongg to indicate non-blocked tiles on mouse-over.
231 The 
232 .LR N
233 key will generate a new level, 
234 .LR R
235 restarts the current one. 
236 .LR Q
237 and 
238 .LR Del
239 quit, 
240 .LR H
241 gives a hint, either trying to match the currently selected tile, or if no tile is
242 selected finding out the first available tile.
243 .LR U
244 and
245 .LR Bksp
246 undo the last move,
247 .LR C
248 tries to solve the level.
249 .TP
250 .B memo
251 Remove all tiles from the board.
252 At first, pictures of various Bell Labs employees, Lucent Technologies' logo, and Glenda will appear.
253 Memorize the sequence, then click to hide them and begin.
254 Use the mouse to select two tiles.
255 If they are the same, the tiles will disappear, otherwise the tiles will flip back and you will get a chance to try again.
256 Button 3 generates a menu allowing you to restart, switch between easy and hard modes, and exit.
257 The
258 .B -h
259 option sets the game to hard mode.
260 Once the game has been completed, a message pops up with how long it took to win.
261 Use the button 3 menu to choose a mode, or click to play again.
262 .TP
263 .B sokoban
264 Guide Glenda through a room full of walls, pebbles and holes to put
265 the pebbles in.  Your goal is to arrange all pebbles into holes by
266 pushing them around, but you can only push a pebble if there is no
267 wall or another pebble blocking the way.
268 Arrow keys move Glenda up-down-left-right.  
269 .LR N 
270 and 
271 .LR P 
272 keys switch between
273 the next and previous levels, 
274 .LR R
275 restarts the current level.  
276 .LR Del 
277 and
278 .LR Q
279 quit.  Button 3 invokes a menu to restart the current level, load different level sets, and en- and disable animation of multi-step moves.
280 Button 2 lets you change between levels. 
281 Button 1 lets you do multi-step moves and pushes,
282 by clicking it on the destination where you want Glenda to go.
283 Glenda will only move if it can reach the destination.
284 For a multi-step push the pebble must be next to Glenda,
285 the destination must be on the same row or column,
286 and there must be a free place next to the destination
287 where the pebble can be pushed to.
288 Otherwise, if possible, Glenda will walk to the destination without pushing the pebble.
289 .I Sokoban
290 accepts a level file as its argument.
291 .TP
292 .B sudoku
293 .I Sudoku
294 is a puzzle game from Japan.  The goal of the game is to
295 fill the numbers 1 to 9 in all squares of the 9x9 board following a
296 few simple rules: no digit should repeat on the same row and column,
297 and no digit should repeat in the same 3x3 boxes outlined with thicker
298 lines.  The board is initially filled with a partial solution which
299 can be used for inferring digits for the empty squares.  The top row
300 of the board contains the digits 1 through 9, clicking on one of those
301 digits selects that number for placement on the board, clicking it
302 again will deselect that digit.  Clicking on an empty square will then
303 affix the square with the selected digit or, if no digit is selected
304 empty the square.
305 .IP
306 Button 3 presents a menu with the following options:
307 .RS \w'\fLfireworksXX'u
308 .TP \w'\fLOffsetXX'u
309 .B New
310 autogenerate a new, random board
311 .TP
312 .B Check
313 mark in red any digits not placed according to the rules
314 .TP
315 .B Solve
316 present the board's solution
317 .TP
318 .B Clear
319 clear the board to its starting (or last loaded) state
320 .TP
321 .B Save
322 save the current board to
323 .B /tmp/sudoku-save
324 .TP
325 .B Load
326 load the last saved board from
327 .B /tmp/sudoku-save
328 .TP
329 .B Print
330 print the current board and solution in a format
331 suitable for addition in the
332 .I sudoku
333 library to
334 .B /tmp/sudoku-board
335 .TP
336 .B Offline
337 pretty-print the board for off-line solving to
338 .B /tmp/sudoku-print
339 .TP
340 .B Exit
341 quit the game
342 .RE
343 .IP
344 Button 2 presents a list of
345 .I sudoku
346 boards of varying degrees of difficulty from
347 .BR /sys/games/lib/sudoku/boards .
348 .IP
349 Pressing the
350 .B Q
351 key quits
352 .IR sudoku .
353 .SH FILES
354 .TF /sys/games/lib/mahjongg/*
355 .TP
356 .B /sys/games/lib/[45]scores
357 score files of
358 .I 4s
359 and
360 .I 5s
361 .TP
362 .B /sys/games/lib/life/*
363 interesting starting positions
364 .TP
365 .B /sys/games/lib/mahjongg/*
366 image sprites, levels and backgrounds used by
367 .I mahjongg
368 .TP
369 .B /lib/face/*
370 tiles for
371 .I memo
372 .TP
373 .B /sys/games/lib/sokoban/*
374 image sprites and levels used by
375 .I sokoban
376 .TP
377 .B /sys/games/lib/sudoku/*
378 images and boards used by
379 .I sudoku
380 .TP
381 .B $home/lib/doom/*
382 .TP
383 .B /sys/lib/doom/*
384 .TP
385 .B /sys/games/lib/doom/*
386 doom WAD-files.
387 .SH SOURCE
388 .B /sys/src/games
389 .SH BUGS
390 In
391 .I 4s
392 and
393 .IR 5s ,
394 mouse warping (when the game is resumed,
395 and when a new tile appears) does not happen when
396 the mouse cursor is outside the game window.
397 Those who prefer to use the keyboard without the mouse
398 cursor blocking the view (or being warped all the time)
399 may consider this a feature.
400 .SH HISTORY
401 .I Doom
402 first appeared in 9front (May, 2011).
403 .br
404 .I Packet
405 first appeared in 9front (August, 2011).