~ubuntu-branches/ubuntu/karmic/xpuzzles/karmic

« back to all changes in this revision

Viewing changes to xrubik/vms/xrubik.hlp

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-22 16:29:42 UTC
  • mfrom: (2.1.1 sarge)
  • Revision ID: james.westby@ubuntu.com-20050822162942-tdtf178zkpd3xxdg
Tags: 7.1.3-1ubuntu1
Update {build-,}depends for xorg -> mesa transition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
6 XRUBIK
 
2
 
 
3
 
 
4
2 Games and Demos                                         XRUBIK(6)
 
5
 
 
6
xrubik - Magic cube X widgets
 
7
 
 
8
/usr/games/xrubik    [-geometry     [{width}][x{height}][{+-
 
9
}{xoff}[{+-}{yoff}]]] [-display [{host}]:[{vs}]] [-[no]mono]
 
10
[-[no]{reverse|rv}]    [-{foreground|fg}     {color}]     [-
 
11
{background|bg}    {color}]    [-{border|bd}   {color}]   [-
 
12
face{0|1|2|3|4|5}   {color}]   [-size{x|y|z}    {int}]    [-
 
13
[no]orient]   [-[no]practice]   [-delay  msecs]  [-{font|fn}
 
14
{fontname}] [-username {string}]
 
15
 
 
16
2 The original puzzle has 9 squares per face (size = 3).   The
 
17
puzzle  was  designed  by  Erno Rubik and called the Rubik's
 
18
2 Cube.  This has 8!*12!*3^8*2^12/12 or 4.3 * 10^19  different
 
19
combinations.
 
20
 
 
21
2 The Pocket Cube has 4 squares  per  face  (size  =  2)  also
 
22
designed  by  Erno Rubik.  This has 7!*3^6 or 3,674,160 dif-
 
23
ferent combinations.
 
24
 
 
25
2 Rubik's Revenge has 16 squares per  face  (size  =  4)  also
 
26
designed  by  Erno Rubik.  This has 7!*3^6*24!*24!/(4!)^6 or
 
27
7.4 * 10^46 different combinations.
 
28
 
 
29
5x5x5 Cube.   This  has  8!*12!*3^7*2^10*(24!)^3/(4!)^12  or
 
30
2.83 * 10^74 different combinations.
 
31
 
 
32
2 There is also the Magic Domino 3x3x2 cube which has (8!)^2/4
 
33
or 406,425,600 combinations.
 
34
 
 
35
2 A physical 6x6x6 cube is possible but to my knowledge no one
 
36
has been too successful in building one.  7x7x7 is also pos-
 
37
sible, but here one must make the center most cubes  smaller
 
38
than  the outside cubes, so the corners do not fall off when
 
39
turned.
 
40
 
 
41
2 FEATURES
 
42
2 Press "mouse-left" button to move a piece.  Release  "mouse-
 
43
left"  button  on  a  piece on the same face and in the same
 
44
row.  The pieces will then turn towards where the mouse but-
 
45
ton was released.
 
46
 
 
47
2 Click "mouse-center", or press "P" or "p" keys to toggle the
 
48
practice mode (in practice mode the record should say "prac-
 
49
tice").  This is good for learning moves and experimenting.
 
50
 
 
51
2 Click "mouse-right", or press "R" or "r" keys  to  randomize
 
52
the puzzle (this must be done first to set a new record).
 
53
 
 
54
2 Games and Demos                                         XRUBIK(6)
 
55
 
 
56
2 Press "I" or "i" keys to increase the number of "cubies".
 
57
 
 
58
2 Press "D" or "d" keys to decrease the number of "cubies".
 
59
 
 
60
2 Press "x" key to increase the number of "cubies" along the x
 
61
axis.
 
62
 
 
63
2 Press "X" key to decrease the number of "cubies" along the x
 
64
axis.
 
65
 
 
66
2 Press "y" key to increase the number of "cubies" along the y
 
67
axis.
 
68
 
 
69
2 Press "Y" key to decrease the number of "cubies" along the y
 
70
axis.
 
71
 
 
72
2 Press "z" key to increase the number of "cubies" along the z
 
73
axis.
 
74
 
 
75
2 Press "Z" key to decrease the number of "cubies" along the z
 
76
axis.
 
77
 
 
78
2 Press "O" or "o" keys to toggle the orient mode.  One has to
 
79
orient  the  faces  in  orient mode, besides getting all the
 
80
faces to be the same color.  To do this one has to  get  the
 
81
lines  to  be  oriented  in  the  same  direction, this only
 
82
matters  with  center  "cubies",  if  at  all  (i.e.   those
 
83
"cubies" not on a corner or edge).  This does add complexity
 
84
so there are 2 sets of records.
 
85
 
 
86
2 Press "S" or "s" keys to start auto-solver.  Only  works  on
 
87
1x1x1,  2x2x2,  and  3x3x3  cubes  (3x3x3 cube in non-orient
 
88
mode).
 
89
 
 
90
2 Press "U" or "u" keys to undo move.
 
91
 
 
92
2 Press "G" or "g" keys to get a saved puzzle.
 
93
 
 
94
2 Press "W" or "w" keys to write or save a puzzle.
 
95
 
 
96
2 Press "C" or "c" keys to clear a puzzle.
 
97
 
 
98
2 Press "Esc" key to hide program.
 
99
 
 
100
2 Press "Q", "q", or "CTRL-C" keys to kill program.
 
101
 
 
102
2 Use the key pad, "R" keys, or arrow  keys  to  move  without
 
103
mouse clicks.
 
104
2 Key pad is defined for the Rubik2d as:
 
105
  /     Counterclockwise
 
106
 
 
107
  8     Up
 
108
 
 
109
2 Games and Demos                                         XRUBIK(6)
 
110
 
 
111
  ^
 
112
4<5>6   Left, Clockwise, Right
 
113
  v
 
114
  2     Down
 
115
 
 
116
2 Key pad for Rubik3d, use must use your intuition (is this  a
 
117
cop  out  or  what?).   The  key  pad is defined differently
 
118
depending on which side of the cube your mouse  is  pointing
 
119
at.   One  thing that stays the same is "5" is Clockwise and
 
120
"/" is Counterclockwise.
 
121
 
 
122
2 Use the control key and the left mouse  button,  keypad,  or
 
123
arrow  keys to move the whole cube.  This is not recorded as
 
124
a turn.
 
125
 
 
126
2 The title is in the following format (non-motif version):
 
127
     xrubik{2|3}d<dimension>: {1|2|3|4|5|6<cubes per edge on
 
128
     x-axis>x{1|2|3|4|5|6<cubes     per     edge    on    y-
 
129
     axis>x{1|2|3|4|5|6<cubes  per  edge   on   z-axis>}   @
 
130
     (<Number    of   moves>/{<Record   number   of   moves>
 
131
     <username>|"NEVER noaccess"|"practice"}) - <Comment>
 
132
2 If there is no record of the  current  puzzle,  it  displays
 
133
"NEVER noaccess".
 
134
 
 
135
2 OPTIONS
 
136
-geometry {+|-}X{+|-}Y
 
137
        This option sets the initial position of  the  rubik
 
138
        window (resource name "geometry").
 
139
 
 
140
-display host:dpy
 
141
        This option specifies the X server to contact.
 
142
 
 
143
-[no]mono
 
144
        This option allows you to  display on a color screen
 
145
        as if monochrome (resource name "mono").
 
146
 
 
147
-[no]{reverse|rv}
 
148
        This option allows you to see the  rubik  window  in
 
149
        reverse video (resource name "reverse").
 
150
 
 
151
-{foreground|fg} color
 
152
        This option specifies the foreground  of  the  rubik
 
153
        window (resource name "foreground").
 
154
 
 
155
-{background|bg} color
 
156
        This option specifies the background  of  the  rubik
 
157
        window (resource name "background").
 
158
 
 
159
-{border|bd} color
 
160
        This  option  specifies  the  border  color  of  the
 
161
        "cubies" in the rubik window (resource name "border-
 
162
        Color").
 
163
 
 
164
2 Games and Demos                                         XRUBIK(6)
 
165
 
 
166
-face{0|1|2|3|4|5} <color>
 
167
        This option allows you to change the color of a face
 
168
        (resource name "faceColorN"). In mono-mode, color is
 
169
        represented as the first letter of the  color  name.
 
170
        On  the  2-D  version,  the faces are ordered top to
 
171
        bottom and left to right on the  "t"  configuration.
 
172
        The sideways "t" or "+-" configuration is physically
 
173
        consistent with the former, so it is ordered "0,  1,
 
174
        2,  3, 5, 4".  If you has two colors that begin with
 
175
        the same letter you should have one in uppercase and
 
176
        one  in  lowercase to distinguish them in mono-mode.
 
177
        You can change the colors of the  faces  to  make  a
 
178
        stupid  cube  (i.e.   all  White or in mono-mode all
 
179
        "W"). Unfortunately, it will not  normally  say  its
 
180
        solved when its randomized. This would be cheating.
 
181
 
 
182
-sizex <int>
 
183
        This option allows  you  to  change  the  number  of
 
184
        "cubies"  on  a  edge  along  x-axis  (resource name
 
185
        "sizex").
 
186
 
 
187
-sizey <int>
 
188
        This option allows  you  to  change  the  number  of
 
189
        "cubies"  on  a  edge  along  y-axis  (resource name
 
190
        "sizey").
 
191
 
 
192
-sizez <int>
 
193
        This option allows  you  to  change  the  number  of
 
194
        "cubies"  on  a  edge  along  z-axis  (resource name
 
195
        "sizez").
 
196
 
 
197
-[no]orient
 
198
        This option allows you to  access  the  orient  mode
 
199
        (resource name "orient").
 
200
 
 
201
-[no]practice
 
202
        This option allows you to access the  practice  mode
 
203
        (resource name "practice").
 
204
 
 
205
-delay msecs
 
206
        This option specifies the number of milliseconds  it
 
207
        takes  to  move a tile or a group of tiles one space
 
208
        (resource name "delay").
 
209
 
 
210
-{font|fn} ontname
 
211
        This option specifies the font  that  will  be  used
 
212
        (resource name "font").
 
213
 
 
214
-username string
 
215
        This option specifies the user name for any  records
 
216
        made  or  else it will get your login name (resource
 
217
        name "userName").
 
218
 
 
219
2 Games and Demos                                         XRUBIK(6)
 
220
 
 
221
2 RECORDS
 
222
2 You must randomize the puzzle before a record is set, other-
 
223
wise an assumption of cheating is made if it is solved after
 
224
a get or an auto-solve.
 
225
 
 
226
2 SAVE_FORMAT
 
227
2 The format is not standard.  The reason is that this is sim-
 
228
ple  to  produce  and  the  standard notation is no good for
 
229
variable number of "cubies".
 
230
 
 
231
2 Rubik2d with default colors, not randomized (front  is  face
 
232
2) :
 
233
  0       R     Red
 
234
1 2 3   Y W G   Yellow, White, Green
 
235
  4       O     Orange
 
236
  5       B     Blue
 
237
 
 
238
     sizex: 1-6 <the number of cubes per row along x-axis>
 
239
     sizey: 1-6 <the number of cubes per row along y-axis>
 
240
     sizez: 1-6 <the number of cubes per row along z-axis>
 
241
     orient: 0-1 <0 false,  1  true;  if  1  then  lines  on
 
242
     "cubies" to be oriented>
 
243
     practice: 0-1 <0 false, 1 true>
 
244
     moves: 0-MAXINT <total number of moves>
 
245
 
 
246
     startingPosition: <2  dimensional  array  of  face  and
 
247
     cubie  position, each face has size * size "cubies", if
 
248
     orient  mode  then  orientation  number  follows   face
 
249
     number: 0 up, 1 right, 2 down, and 3 left>
 
250
 
 
251
2 This is then followed by the moves, starting from 1.
 
252
     move #: <face> <position> <direction> <control>
 
253
2 Each turn is with respect to a face and position.
 
254
2 Position is 0 to size * size - 1.   Position  0  is  in  the
 
255
upper left.
 
256
2 Direction is represented as 0 up, 1 right, 2 down, 3 left, 5
 
257
clockwise, and 7 counterclockwise.
 
258
2 Control is represented as 0 or 1, 1 if  the  whole  cube  is
 
259
moved  at  once  (here  position does not matter), 0 if not.
 
260
2 The xrubik record keeper does not count a control move as  a
 
261
move, but here we do.
 
262
 
 
263
2 If you have a Rubik's Cube  you  can  not  solve  (2x2x2  or
 
264
3x3x3)  enter  it  in  rubik.log  file.  Have size = 2 or 3,
 
265
orient = 0, practice = 0, randomized = 1, and moves = 0  and
 
266
the number representation for the color of the "cubie" faces
 
267
(usually 0=R, 1=Y, 2=W, 3=G, 4=O, 5=B).   Bring  up  xrubik,
 
268
hit  'g'  so  it will get your configuration and then 's' to
 
269
solve your cube and then 'w' to write out the  steps.   Then
 
270
examine your rubik.log file.
 
271
 
 
272
2 Games and Demos                                         XRUBIK(6)
 
273
 
 
274
2 REFERENCES
 
275
2 Inside Rubik's Cube and Beyond by Christoph  Bandelow,  Bir-
 
276
khauser, 1982. pp 44, 45, 88, 89
 
277
 
 
278
2 Magic Cubes 1996 Catalog of Dr. Christoph Bandelow.
 
279
 
 
280
2 The Simple Solution To Rubik's Cube, James G.  Nourse,  June
 
281
1981
 
282
 
 
283
2 Rubik's Cube Newsletter by Ideal Aug 1982 Vol.1 No. 2
 
284
 
 
285
2 Rubik's Cube The Solution, Ideal Toy Corporation, 1981
 
286
 
 
287
2 Rubik's Revenge Puzzle The Solution, Ideal Toy  Corporation,
 
288
1982
 
289
 
 
290
2 SEE_ALSO
 
291
2 X(1), xskewb(6), xdino(6), xpyraminx(6), xoct(6), xmball(6),
 
292
xmlink(6),   xpanex(6),   xcubes(6),  xtriangles(6),  xhexa-
 
293
gons(6), xabacus(6)
 
294
 
 
295
2 COPYRIGHTS
 
296
(Reg.) Copyright 1994-2005, David Albert Bagley
 
297
 
 
298
2 Michael  B.  Martin,  <martinm@sps1.phys.vt.edu>  wrote   an
 
299
independent  program  cubist10.c--  for IBM PC.  I added the
 
300
auto-solve code into xrubik, with his permission.
 
301
 
 
302
2 BUG_REPORTS AND PROGRAM UPDATES
 
303
2 Send bugs (or their reports, or fixes) to the author:
 
304
     David Albert Bagley, <bagleyd@tux.org>
 
305
 
 
306
2 The latest version is currently at:
 
307
     ftp://ftp.tux.org/pub/tux/bagleyd/xpuzzles
 
308
     ftp://ibiblio.org/pub/Linux/games/strategy
 
309