1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE refentry PUBLIC
3   "-//OASIS//DTD DocBook XML V4.1.2//EN"
4   "docbook/docbookx.dtd">
5<refentry id='greed.6'>
6<refmeta>
7<refentrytitle>greed</refentrytitle>
8<manvolnum>6</manvolnum>
9<refmiscinfo class='date'>Jul 27 2000</refmiscinfo>
10<refmiscinfo class='source'>greed</refmiscinfo>
11<refmiscinfo class='product'>greed</refmiscinfo>
12<refmiscinfo class='manual'>Games</refmiscinfo>
13</refmeta>
14<refnamediv id='name'>
15<refname>greed</refname>
16<refpurpose>eat a game field until you run out of moves</refpurpose>
17</refnamediv>
18<refsynopsisdiv id='synopsis'>
19
20<cmdsynopsis>
21  <command>greed</command>  <arg choice='opt'>-s </arg>
22</cmdsynopsis>
23
24</refsynopsisdiv>
25
26<refsect1 id='description'><title>DESCRIPTION</title>
27
28<para>The object of Greed is to erase as much of the screen as
29possible by moving around in a grid of numbers.  To move your cursor,
30simply use your arrow keys or the the 'hjklyubn' keys or your numeric
31keypad (with Num Lock on).  Your location is signified by the @
32symbol. The following diagram shows how the basic movemebt keys
33work.</para>
34
35<screen>
36y k u  7 8 9
37 \|/    \|/
38h-+-l  4-+-6
39 /|\    /|\
40b j n  1 2 3
41</screen>
42
43<para>When you move in a direction, you erase N number of grid squares in
44that direction, N being the first number in that direction.  Your
45score reflects the total number of squares eaten.</para>
46
47<para>Greed will not let you make a move that would have placed you off the
48grid or over a previously eaten square. If no valid moves exist, your
49game ends.</para>
50
51<para>Other Greed commands are 'Ctrl-L' to redraw the screen, 'p' to toggle
52the highlighting of the possible moves, and 'q' to quit.  </para>
53
54<para>The only command line option to Greed is '-s' to output the high
55score file.</para>
56</refsect1>
57
58<refsect1 id='environment'><title>ENVIRONMENT</title>
59<para>The environment variable GREEDOPTS can override the default
60color set, which will be parsed as a string of the form:</para>
61
62<literallayout remap='.nf'>
63	&lt;c1&gt;&lt;c2&gt;&lt;c3&gt;&lt;c4&gt;&lt;c5&gt;&lt;c6&gt;&lt;c7&gt;&lt;c8&gt;&lt;c9&gt;[:[p]]
64</literallayout> <!-- .fi -->
65
66<para>where &lt;cn&gt; is a character decribing the color for digit n.
67The color letters are read as follows:</para>
68
69<literallayout remap='.nf'>
70	b = blue,
71	g = green,
72	c = cyan,
73	r = red,
74	m = magenta,
75	y = yellow,
76	w = white.
77</literallayout> <!-- .fi -->
78
79<para>In addition, capitalizing a letter turns on the A_BOLD attribute for that
80letter.</para>
81
82<para>If the string ends with a trailing :, letters following are taken as game
83options. At present, only 'p' (equivalent to an initial 'p' command) is
84defined.</para>
85</refsect1>
86
87<refsect1 id='files'><title>FILES</title>
88<variablelist remap='TP'>
89<varlistentry>
90<term>/usr/lib/games/greed.hs</term>
91<listitem>
92<para>Default location of Greed high scores.</para>
93</listitem>
94</varlistentry>
95<varlistentry>
96<term>~/.greedscores</term>
97<listitem>
98<para>Where they're put if the default location cannot be written to..</para>
99</listitem>
100</varlistentry>
101</variablelist>
102
103</refsect1>
104
105<refsect1 id='authors'><title>AUTHORS</title> <para>Originally written
106by Matt Day.  Maintained by <email>esr@snark.thyrsus.com</email>. See
107ESR's home page at <ulink
108url='http://www.catb.org/~esr/'>http://www.catb.org/~esr/</ulink> for
109updates and other resources.</para>
110</refsect1>
111
112<refsect1 id='bugs'><title>BUGS</title>
113<para>This really ought to be an X game, but that would have been too much
114like work.</para>
115</refsect1>
116</refentry>
117
118