File: xbarrel.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 (261 lines) | stat: -rw-r--r-- 10,413 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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<HTML>
<HEAD>
<TITLE>xbarrel</TITLE>
</HEAD>
<BODY>
<H1>xbarrel</H1>
<HR>
<PRE>

</PRE>
<H2>SYNOPSIS</H2><PRE>
       <B>/usr/games/xbarrel</B>                                           [-geometry
       [{width}][x{height}][{+-}{xoff}[{+-}{yoff}]]]                 [-display
       [{host}]:[{vs}]]   [-[no]mono]   [-[no]{reverse|rv}]  [-{foreground|fg}
       {color}] [-{background|bg} {color}] [-tile {color}] [-face{0|1|2|3|4|5}
       {color}]  [-{border|bd}  {color}]  [-[no]install] [-picture {filename}]
       [-delay msecs] [-[no]sound] [-bumpSound {filename}] [-moveSound  {file-
       name}] [-{font|fn} {fontname}] [-[no]orient] [-[no]pairs] [-base {int}]
       [-userName {string}] [-scoreFile {filename}] [-scores] [-version]


</PRE>
<H2>DESCRIPTION</H2><PRE>
       The Barrel, the Billion Barrel, or Wonderful Barrel also  seen  as  the
       Cylinder Puzzle is of Japanese origin.  The puzzle contains 23 beads of
       6 different colors.  4 each of 5 different colors arranged  in  5  rows
       and  3 black beads making 3 rows one unit longer.  A system of plungers
       slide all three of the long rows left and right.  Two of  the  plungers
       sit  together  and  the other (the middle plunger) is separate from the
       other two.  There are 2 separate wheels or disks that rotate about  the
       center axis.


</PRE>
<H2>FEATURES</H2><PRE>
       Press  "<B>mouse-left</B>" button to move a tile.  Release "<B>mouse-left</B>" button
       in the same row would move the tile towards the space (unless there  is
       no  space in that row).  Release on a different row will move the tiles
       up or down.

       Click "<B>mouse-center</B>", or press "<B>P</B>" or "<B>p</B>" keys to toggle  the  practice
       mode (in practice mode the record should say "practice").  This is good
       for learning moves and experimenting.

       Click "<B>mouse-right</B>", or press "<B>Z</B>" or "<B>z</B>" keys, to randomize the  puzzle
       (this must be done first to set a new record).

       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>C</B>" or "<B>c</B>" keys to clear the puzzle.

       "<B>S</B>" or "<B>s</B>" keys to start the auto-solver.  Only works where oriented is
       off.

       Press "<B>O</B>" or "<B>o</B>" keys to toggle the orient mode.  Slightly  more  chal-
       lenging on (default is off).

       Press  "<B>I</B>"  or "<B>i</B>" keys to toggle the pairs mode.  All the tiles rotate
       in pairs.  This is considerably more challenging on (default is on).

       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 Barrel as:
         8     Up
         ^
       4&lt; &gt;6   Left, Right
         v
         2     Down

       Use the shift key and the up or down  arrow  keys  to  rotate  all  the
       tiles.

       Use  the  control key and the keypad or arrow keys to reduce or enlarge
       the complexity of the puzzle.

       The title is in the following format (non-motif version):
              xbarrel: {norm|ind&lt;control of movement of pairs tiles&gt;} @ (&lt;Num-
              ber of moves&gt;/{&lt;Record number of moves&gt; &lt;user name&gt;|"NEVER noac-
              cess"|"practice"}) - &lt;Comment&gt;
       Movement of tile pairs are either move together or independent.
       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 barrel 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 barrel 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 barrel window in reverse
               video (resource name "<I>reverseVideo</I>").

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

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

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

       <B>-face{0|1|2|3|4|5}</B> <B>&lt;</B><I>color</I><B>&gt;</B>
               This  option allows you to change the color of a face (resource
               name "<I>faceColorN</I>"). In mono-mode, color is represented  as  the
               first  letter of the color name.  The 0th face is the last face
               face on barrel because I wanted that one  to  remain  white  by
               default when there are more or less faces.

       <B>-{border|bd}</B> <I>color</I>
               This option specifies the border color of the tiles in the bar-
               rel window (resource name "<B>orderColor</B>").

       <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 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 of the tiles (resource name "<I>bumpSound</I>").

       <B>-moveSound</B> <I>filename</I>
               This option specifies the file  for  the  move  sound  for  the
               twisting of the puzzle (resource name "<I>moveSound</I>").

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

       <B>-[no]orient</B>
               This option allows you to access the orient mode (resource name
               "<I>orient</I>").

       <B>-[no]pairs</B>
               This  option allows you to access the pairs mode (resource name
               "k<I>pairs</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 xbarrel 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 xbarrel  configuration,  starting  position,
       and the movement of its pieces.

              pairs:  0-1  &lt;0  false,  1  true;  if 1 then pairs of rings move
              together&gt;
              orient: 0-1 &lt;0 false, 1 true; if 1 then chain linked in order&gt;
              moves: 0-MAXINT &lt;total number of moves&gt;

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

       This is then followed by the moves, starting from 1.
              move #: &lt;direction&gt; &lt;tile&gt; &lt;shift&gt;
       Direction is represented as 0 up, 1 right, 2 down, and 3 left.
       Tile is the column of tile.
       Shift  is represented as 0 or 1, 1 if the whole puzzle is moved at once
       (here Tile does not matter), 0 if not.  The xbarrel record keeper  does
       not count a control move as a move, but here we do.


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

       James G Nourse, The Simple Solutions to Cubic, Puzzles,  Bantam  Books,
       New York, November 1981, pp 25-42.

       John  Ewing &amp; Czes Kosniowski, Puzzle it Out: Cubes Groups and Puzzles,
       Cambridge University Press, New York, 1982, pp 50-54?


</PRE>
<H2>SEE ALSO</H2><PRE>
       <B>X(1)</B>, <B>xcubes(6)</B>,  <B>xtriangles(6)</B>,  <B>xhexagons(6)</B>,  <B>xmlink(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>BARREL(6)</B>
</PRE>
<HR>
</BODY>
</HTML>