File: xcubes.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 (241 lines) | stat: -rw-r--r-- 9,381 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
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<HTML>
<HEAD>
<TITLE>xcubes</TITLE>
</HEAD>
<BODY>
<H1>xcubes</H1>
<HR>
<PRE>

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


</PRE>
<H2>DESCRIPTION</H2><PRE>
       A 3D sliding block puzzle.  The cubes represented are flattened out  on
       the  plane.   If the Blocks Z slider is greater than 1, then each group
       of boxes is a layer of the puzzle.  If the Blocks Z slider  =  1,  then
       this  is  a  simple  15 tile puzzle.  The 15 puzzle was originally made
       around 1880 by Noyes Chapman (the 14-15 puzzle of  Sam  Loyd  was  made
       soon after).  Similar 3D puzzles include BloxBox; Qrazy Qube (2x2x2) by
       P. Hein of Denmark and Varikon Box 'L (3x3x3) (Hungary) and Mad Marbles
       (3x3x3) by Toys &amp; Games International USA.


</PRE>
<H2>FEATURES</H2><PRE>
       Click  "<B>mouse-left</B>"  button  to  move  a  block.  Clicks on a space, or
       clicks on blocks that are not in line with a space, will not  move  the
       blocks.  Notice, one can move more than one block at a time by clicking
       on the block farthest from the space but still in line with the  space.
       Since you only have a 2-D screen, the next level down is either the box
       to the right of the current box or the bottom of the current box.

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

       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.

       Press "<B>S</B>" or "<B>s</B>" keys to start the auto-solver.  Only  works  on  lxmx1
       where l &gt; 3 and m &gt; 3.

       Press "<B>I</B>" or "<B>i</B>" keys to move a block in.

       Press "<B>O</B>" or "<B>o</B>" keys to move a block out.

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

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

       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 Cubes as:
         /     Out

         8     Up
         ^
       4&lt;5&gt;6   Left, In, Right
         v
         2     Down

       The  control  key  allows you to change the complexity of xcubes.  Hold
       down control key and use the keypad or arrow keys to reduce or  enlarge
       puzzle complexity.

       The title is in the following format (non-motif version):
              xcubes:  &lt;Number of columns&gt;x&lt;Number of rows&gt;x&lt;Number of stacks&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  cubes  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 cubes 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 cubes window in reverse video
               (resource name "<I>reverseVideo</I>").

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

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

       <B>-block</B> <I>color</I>
               This  option  specifies  the  block  color of the blocks in the
               cubes window (resource name "<I>blockColor</I>").

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

       <B>-[no]install</B>
               This  option  specifies  if the colormap should be installed or
               not (resource name "<I>install</I>").

       <B>-picture</B> <I>filename</I>
               This option specifies the file for the picture  (resource  name
               "<I>picture</I>").

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

       <B>-[no]sound</B>
               This option specifies if a sliding block 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 of the tiles (resource name "<I>bumpSound</I>").

       <B>-dripSound</B> <I>filename</I>
               This option specifies the file for the drip sound for the drop-
               ping or raising of the tiles (resource name "<I>dripSound</I>").

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

       <B>-size{x|y|z}</B> <B>&lt;</B><I>int</I><B>&gt;</B>
               This  option allows you to change the number of cubes in a row,
               column, or stack (resource name "<I>sizeX</I>", "<I>sizeY</I>", "<I>sizeZ</I>").

       <B>-base</B> <I>int</I>
               This option specifies the base used in cubes (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 xcubes 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 or an
       auto-solve.


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

              sizeX: 1-8 &lt;number of columns of blocks&gt;
              sizeY: 1-8 &lt;number of rows of blocks&gt;
              sizeZ: 1-8 &lt;number of blocks in a stack&gt;
              moves: 0-MAXINT &lt;total number of moves&gt;

              startingPosition: &lt;array of block positions where 0 is the empty
              space&gt;

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


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

       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>xtriangles(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-2010, 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.6.3                            29 Jun 2010                        <B>XCUBES(6)</B>
</PRE>
<HR>
</BODY>
</HTML>