4
2 Games and Demos XRUBIK(6)
6
xrubik - Magic cube X widgets
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}]
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
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-
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.
29
5x5x5 Cube. This has 8!*12!*3^7*2^10*(24!)^3/(4!)^12 or
30
2.83 * 10^74 different combinations.
32
2 There is also the Magic Domino 3x3x2 cube which has (8!)^2/4
33
or 406,425,600 combinations.
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
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-
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.
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).
54
2 Games and Demos XRUBIK(6)
56
2 Press "I" or "i" keys to increase the number of "cubies".
58
2 Press "D" or "d" keys to decrease the number of "cubies".
60
2 Press "x" key to increase the number of "cubies" along the x
63
2 Press "X" key to decrease the number of "cubies" along the x
66
2 Press "y" key to increase the number of "cubies" along the y
69
2 Press "Y" key to decrease the number of "cubies" along the y
72
2 Press "z" key to increase the number of "cubies" along the z
75
2 Press "Z" key to decrease the number of "cubies" along the z
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.
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
90
2 Press "U" or "u" keys to undo move.
92
2 Press "G" or "g" keys to get a saved puzzle.
94
2 Press "W" or "w" keys to write or save a puzzle.
96
2 Press "C" or "c" keys to clear a puzzle.
98
2 Press "Esc" key to hide program.
100
2 Press "Q", "q", or "CTRL-C" keys to kill program.
102
2 Use the key pad, "R" keys, or arrow keys to move without
104
2 Key pad is defined for the Rubik2d as:
109
2 Games and Demos XRUBIK(6)
112
4<5>6 Left, Clockwise, Right
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.
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
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
136
-geometry {+|-}X{+|-}Y
137
This option sets the initial position of the rubik
138
window (resource name "geometry").
141
This option specifies the X server to contact.
144
This option allows you to display on a color screen
145
as if monochrome (resource name "mono").
148
This option allows you to see the rubik window in
149
reverse video (resource name "reverse").
151
-{foreground|fg} color
152
This option specifies the foreground of the rubik
153
window (resource name "foreground").
155
-{background|bg} color
156
This option specifies the background of the rubik
157
window (resource name "background").
160
This option specifies the border color of the
161
"cubies" in the rubik window (resource name "border-
164
2 Games and Demos XRUBIK(6)
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.
183
This option allows you to change the number of
184
"cubies" on a edge along x-axis (resource name
188
This option allows you to change the number of
189
"cubies" on a edge along y-axis (resource name
193
This option allows you to change the number of
194
"cubies" on a edge along z-axis (resource name
198
This option allows you to access the orient mode
199
(resource name "orient").
202
This option allows you to access the practice mode
203
(resource name "practice").
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").
211
This option specifies the font that will be used
212
(resource name "font").
215
This option specifies the user name for any records
216
made or else it will get your login name (resource
219
2 Games and Demos XRUBIK(6)
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.
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".
231
2 Rubik2d with default colors, not randomized (front is face
234
1 2 3 Y W G Yellow, White, Green
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>
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>
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
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.
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.
272
2 Games and Demos XRUBIK(6)
275
2 Inside Rubik's Cube and Beyond by Christoph Bandelow, Bir-
276
khauser, 1982. pp 44, 45, 88, 89
278
2 Magic Cubes 1996 Catalog of Dr. Christoph Bandelow.
280
2 The Simple Solution To Rubik's Cube, James G. Nourse, June
283
2 Rubik's Cube Newsletter by Ideal Aug 1982 Vol.1 No. 2
285
2 Rubik's Cube The Solution, Ideal Toy Corporation, 1981
287
2 Rubik's Revenge Puzzle The Solution, Ideal Toy Corporation,
291
2 X(1), xskewb(6), xdino(6), xpyraminx(6), xoct(6), xmball(6),
292
xmlink(6), xpanex(6), xcubes(6), xtriangles(6), xhexa-
296
(Reg.) Copyright 1994-2005, David Albert Bagley
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.
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>
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