File: xtriangles.html

package info (click to toggle)
xpuzzles 7.6.3-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 14,208 kB
  • sloc: ansic: 94,274; makefile: 7,477; sh: 3,221
file content (216 lines) | stat: -rw-r--r-- 8,172 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<HTML>
<HEAD>
<TITLE>xtriangles</TITLE>
</HEAD>
<BODY>
<H1>xtriangles</H1>
<HR>
<PRE>

</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>/usr/games/xtriangles</B>                                        [-geometry
       [{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]]                 [-display
       [{host}]:[{vs}]]   [-[no]mono]   [-[no]{reverse|rv}]  [-{foreground|fg}
       {color}] [-{background|bg} {color}]  [-tile  {color}]  [-text  {color}]
       [-delay  msecs] [-[no]sound] [-bumpSound {filename}] [-{font|fn} {font-
       name}] [-size {int}] [-base  {int}]  [-userName  {string}]  [-scoreFile
       {filename}] [-scores] [-version]


</PRE>
<H2>DESCRIPTION</H2><PRE>
       A sliding tile puzzle.  A triangular version of the 15 puzzle which was
       originally made around 1879 (the 14-15 puzzle of Sam Loyd was made soon
       after).    T. R. Dawson in Original Puzzles has a similar puzzle with 4
       diamond- and 6 triangular-shaped pieces.   This  puzzle  is  easier  to
       solve than 15 puzzle.


</PRE>
<H2>FEATURES</H2><PRE>
       Click  "<B>mouse-left</B>" button to move a tile.  Clicks on spaces, or clicks
       on tiles that are not in line with two spaces,  will  not  move  tiles.
       Notice,  one  can  move more than one tile at a time by clicking on the
       tile farthest from the spaces but still in line with the spaces.

       Click "<B>mouse-right</B>" button, or press "<B>C</B>" or "<B>c</B>" keys, to clear the puz-
       zle.

       "<B>S</B>" or "<B>s</B>" keys reserved for the auto-solver (not implemented).

       Press "<B>G</B>" or "<B>g</B>" keys to get a saved puzzle.

       Press "<B>W</B>" or "<B>w</B>" keys to save (write) a puzzle.

       Press "<B>U</B>" or "<B>u</B>" keys to undo a move.

       Press "<B>R</B>" or "<B>r</B>" keys to redo a move.

       Press "<B>Z</B>" or "<B>z</B>" keys to randomize the puzzle.  New records can only be
       set from a cleared state.

       "<B>S</B>" or "<B>s</B>" keys reserved for the auto-solver (not implemented).

       Press "<B>I</B>" or "<B>i</B>" keys to increase the number of tiles.

       Press "<B>D</B>" or "<B>d</B>" keys to decrease the number of tiles.

       Press "<B>&gt;</B>" or "<B>.</B>" keys to speed up the movement of tiles.

       Press "<B>&lt;</B>" or "<B>,</B>" keys to slow down the movement of tiles.

       Press "<B>@</B>" key to toggle the sound.

       Press "<B>Esc</B>" key to hide program.

       Press "<B>Q</B>", "<B>q</B>", or "<B>CTRL-C</B>" keys to kill program.

       Use the key pad or arrow keys to move without the mouse.
       Key pad is defined for Triangles as:
       7   9   Upper Left, Upper Right
         ^
       4&lt; &gt;6   Left, Right
         v
       1   3   Lower Left, Lower Right

       The title is in the following format (non-motif version):
              xtriangles: &lt;size&gt;  @  (&lt;Number  of  moves&gt;/{&lt;Record  number  of
              moves&gt; &lt;user name&gt;|"NEVER noaccess"}) - &lt;Comment&gt;
       If  there  is no record of the current puzzle, it displays "NEVER noac-
       cess".


</PRE>
<H2>OPTIONS</H2><PRE>
       <B>-geometry</B> <B>{+|-}</B><I>X</I><B>{+|-}</B><I>Y</I>
               This option sets the initial position of the  triangles  window
               (resource name "<I>geometry</I>").

       <B>-display</B> <I>host</I><B>:</B><I>dpy</I>
               This option specifies the X server to contact.

       <B>-[no]mono</B>
               This  option  allows  you  to display the triangles window on a
               color screen as if it were monochrome (resource name "<I>mono</I>").

       <B>-[no]{reverse|rv}</B>
               This option allows you to see the triangles window  in  reverse
               video (resource name "<I>reverseVideo</I>").

       <B>-{foreground|fg}</B> <I>color</I>
               This  option  specifies  the foreground of the triangles window
               (resource name "<I>foreground</I>").

       <B>-{background|bg}</B> <I>color</I>
               This option specifies the background of  the  triangles  window
               (resource name "<I>background</I>").

       <B>-tile</B> <I>color</I>
               This option specifies the tile color of the tiles in the trian-
               gles window (resource name "<I>tileColor</I>").

       <B>-text</B> <I>color</I>
               This option specifies the text color of the tiles in the trian-
               gles window (resource name "<I>textColor</I>").

       <B>-delay</B> <I>msecs</I>
               This  option  specifies  the number of milliseconds it takes to
               move a tile or a group of tiles one space (1-50) (resource name
               "<I>delay</I>").

       <B>-[no]sound</B>
               This  option specifies if a sliding tile should make a sound or
               not (resource name "<I>sound</I>").

       <B>-bumpSound</B> <I>filename</I>
               This option specifies the file for the bump sound for the slid-
               ing the tiles (resource name "<I>bumpSound</I>").

       <B>-{font|fn}</B> <B>ontname</B>
               This option specifies the font that will be used (resource name
               "<I>font</I>").

       <B>-size</B> <B>&lt;</B><I>int</I><B>&gt;</B>
               This option allows you to change the number of triangles  in  a
               row (resource name "<I>sizeA</I>").

       <B>-base</B> <I>int</I>
               This  option  specifies  the  base  used  (default  is base 10)
               (resource name "<I>base</I>").

       <B>-userName</B> <I>string</I>
               This option specifies the user name for  any  records  made  or
               else it will get your login name (resource name "<I>userName</I>").

       <B>-scoreFile</B> <I>filename</I>
               Specify  an alternative score file (resource name "<I>scoreFile</I>").

       <B>-scores</B> This option lists all the recorded scores and then exits.

       <B>-version</B>
               This option tells you what version of xtriangles you have.


</PRE>
<H2>RECORDS</H2><PRE>
       You must randomize the puzzle before a  record  is  set,  otherwise  an
       assumption of cheating is made if it is solved after a get.


</PRE>
<H2>SAVE FORMAT</H2><PRE>
       Here is the format for the xtriangles configuration, starting position,
       and the movement of its pieces.

              size: 1-16 &lt;number of tiles in a row of the same orientation  as
              the puzzle&gt;
              moves: 0-MAXINT &lt;total number of moves&gt;

              startingPosition:  &lt;array of tile positions where 0 is the empty
              space for the UP triangle and -1 is the empty space for the DOWN
              triangle&gt;

       This is then followed by the moves, starting from 1.
              move #: &lt;direction&gt;
       Direction  is  represented  as 0 upper right, 1 right, 2 lower right, 3
       lower left, 4 left, and 5 upper left.


</PRE>
<H2>REFERENCES</H2><PRE>
       L.  E.  Horden,  Sliding  Piece  Puzzles  (Recreations  in  Mathematics
       Series), Oxford University Press 1986, pp 1, 148, 149.

       Jerry Slocum &amp; Jack Botermans, Puzzles Old &amp; New (How to Make and Solve
       Them), University of Washington Press, Seattle, 1987, pp 126, 127.


</PRE>
<H2>SEE ALSO</H2><PRE>
       <B>X(1)</B>,  <B>xcubes(6)</B>,  <B>xhexagons(6)</B>,  <B>xmlink(6)</B>,   <B>xbarrel(6)</B>,   <B>xpanex(6)</B>,
       <B>xmball(6)</B>, <B>xpyraminx(6)</B>, <B>xoct(6)</B>, <B>xrubik(6)</B>, <B>xskewb(6)</B>, <B>xdino(6)</B>, xaba-
       <B>cus(6)</B>


</PRE>
<H2>COPYRIGHTS</H2><PRE>
       (R) Copyright 1994-2009, David A. Bagley


</PRE>
<H2>BUG REPORTS AND PROGRAM UPDATES</H2><PRE>
       Send bugs (or their reports, or fixes) to the author:
              David A. Bagley, &lt;<I>bagleyd@tux.org</I>&gt;

       The latest version is currently at:
              <I>http://www.tux.org/~bagleyd/puzzles.html</I>
              <I>ftp://ibiblio.org/pub/Linux/games/strategy</I>



V7.5.1                            10 Nov 2009                    <B>XTRIANGLES(6)</B>
</PRE>
<HR>
</BODY>
</HTML>