comparison rantaiwarna.6.xml @ 0:a9a7ad180c3b version-1

Initial revision
author Guido Berhoerster <guido+rantaiwarna@berhoerster.name>
date Sat, 15 Mar 2014 18:41:03 +0100
parents
children 08c750f7c4a7
comparison
equal deleted inserted replaced
-1:000000000000 0:a9a7ad180c3b
1 <?xml version="1.0"?>
2 <!--
3
4 Copyright (C) 2014 Guido Berhoerster <guido+rantaiwarna@berhoerster.name>
5
6 Permission is hereby granted, free of charge, to any person obtaining
7 a copy of this software and associated documentation files (the
8 "Software"), to deal in the Software without restriction, including
9 without limitation the rights to use, copy, modify, merge, publish,
10 distribute, sublicense, and/or sell copies of the Software, and to
11 permit persons to whom the Software is furnished to do so, subject to
12 the following conditions:
13
14 The above copyright notice and this permission notice shall be included
15 in all copies or substantial portions of the Software.
16
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
18 EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21 CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22 TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23 SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25 -->
26 <refentry xmlns="http://docbook.org/ns/docbook" xml:lang="en">
27 <info>
28 <author>
29 <personname>
30 <firstname>Guido</firstname>
31 <surname>Berhoerster</surname>
32 </personname>
33 <email>guido+rantaiwarna@berhoerster.name</email>
34 <personblurb/>
35 </author>
36 <date>12 March, 2014</date>
37 </info>
38 <refmeta>
39 <refentrytitle>rantaiwarna</refentrytitle>
40 <manvolnum>6</manvolnum>
41 <refmiscinfo class="source"/>
42 <refmiscinfo class="version"/>
43 <refmiscinfo class="manual">User Commands</refmiscinfo>
44 </refmeta>
45 <refnamediv>
46 <refname>rantaiwarna</refname>
47 <refpurpose>tile-matching puzzle game</refpurpose>
48 </refnamediv>
49 <refsynopsisdiv>
50 <cmdsynopsis>
51 <command>rantaiwarna</command>
52 <arg choice="opt">
53 <option>-c</option>
54 <replaceable>colors</replaceable>
55 </arg>
56 <arg choice="opt">
57 <option>-w</option>
58 <replaceable>width</replaceable>
59 </arg>
60 <arg choice="opt">
61 <option>-h</option>
62 <replaceable>height</replaceable>
63 </arg>
64 </cmdsynopsis>
65 </refsynopsisdiv>
66 <refsect1>
67 <title>Description</title>
68 <para><command>rantaiwarna</command> is a tile-matching puzzle game which
69 is also known under the names <quote>Chain Shot!</quote> or
70 <quote>SameGame</quote>. It is played on a rectangular board which is
71 initially filled with elements of several different colors. Two or more
72 adjacent elements of the same color may be eliminated, the score
73 resulting from the elimination of elements depends on the number of
74 elements eliminated at once. The goal of the game is to eliminate as many
75 elements as possible until there are no more adjacent elements of the
76 same color left or the board is completely cleared. Vertical gaps
77 resulting from the elimination of elements are filled by sliding down
78 elements from above the gap, column gaps are filled by sliding columns on
79 the right side of the column gap to the left.</para>
80 </refsect1>
81 <refsect1>
82 <title>Options</title>
83 <para>The following options are supported:</para>
84 <variablelist>
85 <varlistentry>
86 <term>
87 <option>-c</option>
88 <replaceable>color</replaceable>
89 </term>
90 <listitem>
91 <para>Use the specified number of colors, at least two and at most
92 five.</para>
93 </listitem>
94 </varlistentry>
95 <varlistentry>
96 <term>
97 <option>-w</option>
98 <replaceable>width</replaceable>
99 </term>
100 <listitem>
101 <para>Create a board with the given width, at least five
102 elements.</para>
103 </listitem>
104 </varlistentry>
105 <varlistentry>
106 <term>
107 <option>-h</option>
108 <replaceable>height</replaceable>
109 </term>
110 <listitem>
111 <para>Create a board with the given height, at least five
112 elements.</para>
113 </listitem>
114 </varlistentry>
115 </variablelist>
116 </refsect1>
117 <refsect1>
118 <title>Usage</title>
119 <para><command>rantaiwarna</command> makes use of the <citerefentry>
120 <refentrytitle>curses</refentrytitle><manvolnum>3</manvolnum>
121 </citerefentry> library and determines the terminal's capabilities using
122 its <citerefentry><refentrytitle>terminfo</refentrytitle>
123 <manvolnum>5</manvolnum></citerefentry> entry. Certain keyboard and mouse
124 commands may not be available depending on the terminal and the variant of
125 the <citerefentry><refentrytitle>curses</refentrytitle>
126 <manvolnum>3</manvolnum></citerefentry> library
127 <command>rantaiwarna</command> was built against.</para>
128 <refsect2>
129 <title>Game Screen Commands</title>
130 <variablelist>
131 <varlistentry>
132 <term>
133 <keycap function="up"/>,
134 <keycap function="right"/>,
135 <keycap function="down"/>,
136 <keycap function="left"/>
137 </term>
138 <listitem>
139 <para>move the cursor around</para>
140 </listitem>
141 </varlistentry>
142 <varlistentry>
143 <term>
144 <keycap>h</keycap>,
145 <keycap>j</keycap>,
146 <keycap>k</keycap>,
147 <keycap>l</keycap>
148 </term>
149 <listitem>
150 <para>same as arrow keys</para>
151 </listitem>
152 </varlistentry>
153 <varlistentry>
154 <term>
155 <keycap function="space"/>
156 </term>
157 <listitem>
158 <para>eliminate elements under the cursor</para>
159 </listitem>
160 </varlistentry>
161 <varlistentry>
162 <term>
163 <keycap function="enter"/>
164 </term>
165 <listitem>
166 <para>same as <keycap function="space"/></para>
167 </listitem>
168 </varlistentry>
169 <varlistentry>
170 <term>
171 <mousebutton>Left mouse button</mousebutton>
172 </term>
173 <listitem>
174 <para>same as <keycap function="space"/></para>
175 </listitem>
176 </varlistentry>
177 <varlistentry>
178 <term>
179 <keycombo action="simul">
180 <keycap function="control"/>
181 <keycap>l</keycap>
182 </keycombo>
183 </term>
184 <listitem>
185 <para>refresh the screen</para>
186 </listitem>
187 </varlistentry>
188 <varlistentry>
189 <term>
190 <keycap>H</keycap>
191 </term>
192 <listitem>
193 <para>switch to the help screen</para>
194 </listitem>
195 </varlistentry>
196 <varlistentry>
197 <term>
198 <keycap>i</keycap>
199 </term>
200 <listitem>
201 <para>switch to the highscore screen</para>
202 </listitem>
203 </varlistentry>
204 <varlistentry>
205 <term>
206 <keycap>n</keycap>
207 </term>
208 <listitem>
209 <para>start a new game</para>
210 </listitem>
211 </varlistentry>
212 <varlistentry>
213 <term>
214 <keycap>q</keycap>
215 </term>
216 <listitem>
217 <para>quit the game</para>
218 </listitem>
219 </varlistentry>
220 </variablelist>
221 </refsect2>
222 <refsect2>
223 <title>Highscore Screen Commands</title>
224 <variablelist>
225 <varlistentry>
226 <term>
227 <keycap function="up"/>,
228 <keycap function="right"/>,
229 <keycap function="down"/>,
230 <keycap function="left"/>
231 </term>
232 <listitem>
233 <para>scroll on line up or down or one character to the left or
234 right</para>
235 </listitem>
236 </varlistentry>
237 <varlistentry>
238 <term>
239 <keycap>h</keycap>,
240 <keycap>j</keycap>,
241 <keycap>k</keycap>,
242 <keycap>l</keycap>
243 </term>
244 <listitem>
245 <para>same as arrow keys</para>
246 </listitem>
247 </varlistentry>
248 <varlistentry>
249 <term>
250 <keycap function="space"/>
251 </term>
252 <listitem>
253 <para>scroll down one line</para>
254 </listitem>
255 </varlistentry>
256 <varlistentry>
257 <term>
258 <keycap function="enter"/>
259 </term>
260 <listitem>
261 <para>same as <keycap function="space"/></para>
262 </listitem>
263 </varlistentry>
264 <varlistentry>
265 <term>
266 <keycap function="pageup"/>,
267 <keycap function="pagedown"/>
268 </term>
269 <listitem>
270 <para>scroll up or down one screenful</para>
271 </listitem>
272 </varlistentry>
273 <varlistentry>
274 <term>
275 <keycap>b</keycap>,
276 <keycap>f</keycap>
277 </term>
278 <listitem>
279 <para>same as <keycap function="pageup"/> or
280 <keycap function="pagedown"/></para>
281 </listitem>
282 </varlistentry>
283 <varlistentry>
284 <term>
285 <keycombo action="simul">
286 <keycap function="control"/>
287 <keycap>b</keycap>
288 </keycombo>,
289 <keycombo action="simul">
290 <keycap function="control"/>
291 <keycap>f</keycap>
292 </keycombo>
293 </term>
294 <listitem>
295 <para>same as <keycap function="pageup"/> or
296 <keycap function="pagedown"/></para>
297 </listitem>
298 </varlistentry>
299 <varlistentry>
300 <term>
301 <keycap function="home"/>,
302 <keycap function="end"/>
303 </term>
304 <listitem>
305 <para>go to the first or last line</para>
306 </listitem>
307 </varlistentry>
308 <varlistentry>
309 <term>
310 <keycap>g</keycap>,
311 <keycap>G</keycap>,
312 </term>
313 <listitem>
314 <para>same as <keycap function="home"/> or
315 <keycap function="end"/></para>
316 </listitem>
317 </varlistentry>
318 <varlistentry>
319 <term>
320 <keycombo action="simul">
321 <keycap function="control"/>
322 <keycap>l</keycap>
323 </keycombo>
324 </term>
325 <listitem>
326 <para>refresh the screen</para>
327 </listitem>
328 </varlistentry>
329 <varlistentry>
330 <term>
331 <keycap>a</keycap>
332 </term>
333 <listitem>
334 <para>switch to the game screen</para>
335 </listitem>
336 </varlistentry>
337 <varlistentry>
338 <term>
339 <keycap>H</keycap>
340 </term>
341 <listitem>
342 <para>switch to the help screen</para>
343 </listitem>
344 </varlistentry>
345 <varlistentry>
346 <term>
347 <keycap>q</keycap>
348 </term>
349 <listitem>
350 <para>quit the game</para>
351 </listitem>
352 </varlistentry>
353 </variablelist>
354 </refsect2>
355 <refsect2>
356 <title>Help Screen Commands</title>
357 <variablelist>
358 <varlistentry>
359 <term>
360 <keycap function="up"/>,
361 <keycap function="right"/>,
362 <keycap function="down"/>,
363 <keycap function="left"/>
364 </term>
365 <listitem>
366 <para>scroll on line up or down or one character to the left or
367 right</para>
368 </listitem>
369 </varlistentry>
370 <varlistentry>
371 <term>
372 <keycap>h</keycap>,
373 <keycap>j</keycap>,
374 <keycap>k</keycap>,
375 <keycap>l</keycap>
376 </term>
377 <listitem>
378 <para>same as arrow keys</para>
379 </listitem>
380 </varlistentry>
381 <varlistentry>
382 <term>
383 <keycap function="space"/>
384 </term>
385 <listitem>
386 <para>scroll down one line</para>
387 </listitem>
388 </varlistentry>
389 <varlistentry>
390 <term>
391 <keycap function="enter"/>
392 </term>
393 <listitem>
394 <para>same as <keycap function="space"/></para>
395 </listitem>
396 </varlistentry>
397 <varlistentry>
398 <term>
399 <keycap function="pageup"/>,
400 <keycap function="pagedown"/>
401 </term>
402 <listitem>
403 <para>scroll up or down one screenful</para>
404 </listitem>
405 </varlistentry>
406 <varlistentry>
407 <term>
408 <keycap>b</keycap>,
409 <keycap>f</keycap>
410 </term>
411 <listitem>
412 <para>same as <keycap function="pageup"/> or
413 <keycap function="pagedown"/></para>
414 </listitem>
415 </varlistentry>
416 <varlistentry>
417 <term>
418 <keycombo action="simul">
419 <keycap function="control"/>
420 <keycap>b</keycap>
421 </keycombo>,
422 <keycombo action="simul">
423 <keycap function="control"/>
424 <keycap>f</keycap>
425 </keycombo>
426 </term>
427 <listitem>
428 <para>same as <keycap function="pageup"/> or
429 <keycap function="pagedown"/></para>
430 </listitem>
431 </varlistentry>
432 <varlistentry>
433 <term>
434 <keycap function="home"/>,
435 <keycap function="end"/>
436 </term>
437 <listitem>
438 <para>go to the first or last line</para>
439 </listitem>
440 </varlistentry>
441 <varlistentry>
442 <term>
443 <keycap>g</keycap>,
444 <keycap>G</keycap>,
445 </term>
446 <listitem>
447 <para>same as <keycap function="home"/> or
448 <keycap function="end"/></para>
449 </listitem>
450 </varlistentry>
451 <varlistentry>
452 <term>
453 <keycombo action="simul">
454 <keycap function="control"/>
455 <keycap>l</keycap>
456 </keycombo>
457 </term>
458 <listitem>
459 <para>refresh the screen</para>
460 </listitem>
461 </varlistentry>
462 <varlistentry>
463 <term>
464 <keycap>a</keycap>
465 </term>
466 <listitem>
467 <para>switch to the game screen</para>
468 </listitem>
469 </varlistentry>
470 <varlistentry>
471 <term>
472 <keycap>i</keycap>
473 </term>
474 <listitem>
475 <para>switch to the highscore screen</para>
476 </listitem>
477 </varlistentry>
478 <varlistentry>
479 <term>
480 <keycap>q</keycap>
481 </term>
482 <listitem>
483 <para>quit the game</para>
484 </listitem>
485 </varlistentry>
486 </variablelist>
487 </refsect2>
488 </refsect1>
489 <refsect1>
490 <title>Files</title>
491 <variablelist>
492 <varlistentry>
493 <term>
494 <filename>$HOME/.rantaiwarna_hiscore</filename>
495 </term>
496 <listitem>
497 <para>personal highscore file</para>
498 </listitem>
499 </varlistentry>
500 </variablelist>
501 </refsect1>
502 <refsect1>
503 <title>Exit Status</title>
504 <para>The following exit values are returned:</para>
505 <variablelist>
506 <varlistentry>
507 <term>0</term>
508 <listitem>
509 <para>Command successfully executed.</para>
510 </listitem>
511 </varlistentry>
512 <varlistentry>
513 <term>&gt; 0</term>
514 <listitem>
515 <para>An error has occured.</para>
516 </listitem>
517 </varlistentry>
518 </variablelist>
519 </refsect1>
520 <refsect1>
521 <title>Files</title>
522 </refsect1>
523 </refentry>