4
2 Games and Demos XSKEWB(6)
6
xskewb - Skewb X widgets
8
/usr/games/xskewb [-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}] [-[no]orient] [-[no]practice] [-
13
{font|fn} {fontname}] [-username {string}]
15
2 The original puzzle has each face cut by a diamond, so that
16
there are 5 pieces, 4 corner pieces and one diamond piece in
17
the center. This was designed by Uwe Meffert and called the
18
2 Pyraminx Cube. Douglas Hofstadter later coined it a Skewb
19
and it stuck. The puzzle has period 3 turning (i.e. each
20
half turns with 120 degree intervals). The Skewb has
21
2^5*3^8*6!/2^6 or 3,149,280 different combinations (with
22
centers oriented 2^5*3^8*6!/2 or 100,766,960 different com-
25
2 More recently, Disney released Mickey's Challenge, its a
26
spherical skewb with a pretty good internal mechanism.
27
2 Mickey's challenge has 2^5*3^8*6!/36 5,598,720 visually dif-
28
ferent combinations). It also comes with a pretty neat
29
book. Also released is the Creative Puzzle Ball or
30
2 Meffert's Challenge which has 4 rings in different colors.
32
2 Mach Balls of the Hungarian Gyula Mach are similar but they
33
do not have a ratchet mechanism and do not turn as easily or
34
smoothly. One must match the 12 different symbols of 4 each
35
at the 12 intersection points.
38
2 Press "mouse-left" button to move a piece. Release "mouse-
39
left" button on a piece on the same face. (Clicks on dia-
40
monds are ignored). The pieces will then turn towards where
41
the mouse button was released.
43
2 Click "mouse-center", or press "P" or "p" keys to toggle the
44
practice mode (in practice mode the record should say "prac-
45
tice"). This is good for learning moves and experimenting.
47
2 Click "mouse-right", or press "R" or "r" keys to randomize
48
the puzzle (this must be done first to set a new record).
50
2 Press "O" or "o" keys to toggle the orient mode. One has to
51
orient the faces in orient mode, besides getting all the
52
faces to be the same color. To do this one has to get the
53
lines to be oriented in the same direction, this only
54
matters with center diamond piece. This does add complexity
56
2 V7.1 Last change: 29 Aug 2004 1
58
2 Games and Demos XSKEWB(6)
60
so there are 2 sets of records.
62
"S" or "s" keys reserved for the auto-solver (not imple-
65
2 Press "U" or "u" keys to undo move.
67
2 Press "G" or "g" keys to get a saved puzzle.
69
2 Press "W" or "w" keys to write or save a puzzle.
71
2 Press "C" or "c" keys to clear a puzzle.
73
2 Press "Esc" key to hide program.
75
2 Press "Q", "q", or "CTRL-C" keys to kill program.
77
2 Use the key pad, "R" keys, or arrow keys to move without
79
2 Key pad is defined for the Skewb2d as:
82
7 8 9 Upper Left, Up, Upper Right
84
4<5>6 Left, Clockwise, Right
86
1 2 3 Lower Left, Down, Lower Right
87
2 Note: Top, Left, Right, and Down only work when the control
88
key is pressed and there is no analog for Skewb3d.
90
2 If the mouse is on a diamond, the above keys will not move
91
cube because the move is ambiguous. Also if the mouse is on
92
a triangle, not all the keys will function because the puz-
93
zle will only rotate on the cuts, i.e. a triangle with a
94
2 Upper Left - Lower Right cut will rotate only Upper Left &
95
2 Lower Right, a triangle with a Upper Right - Lower Left cut
96
will rotate only Upper Right & Lower Left. Therefore, a
97
triangle can only move tangential to the center of the face.
98
2 No doubt this is confusing, but the physical skewb is the
99
same way. In fact, that is part of its appeal.
101
2 Key pad for Skewb3d, use must use your intuition (is this a
102
cop out or what?). The key pad is defined differently
103
depending on which side of the cube your mouse is pointing
104
at. One thing that stays the same is "5" is Clockwise and
105
"/" is Counterclockwise.
107
2 Use the control key and the left mouse button, keypad, or
108
arrow keys to move the whole cube. This is not recorded as
111
2 V7.1 Last change: 29 Aug 2004 2
113
2 Games and Demos XSKEWB(6)
115
2 The title is in the following format (non-motif version):
116
xskewb{2|3}d<dimension>: (<Number of moves>/{<Record
117
number of moves> <username>|"NEVER
118
noaccess"|"practice"}) - <Comment>
119
2 If there is no record of the current puzzle, it displays
123
-geometry {+|-}X{+|-}Y
124
This option sets the initial position of the skewb
125
window (resource name "geometry").
128
This option specifies the X server to contact.
131
This option allows you to display on a color screen
132
as if monochrome (resource name "mono").
135
This option allows you to see the skewb window in
136
reverse video (resource name "reverse").
138
-{foreground|fg} color
139
This option specifies the foreground of the skewb
140
window (resource name "foreground").
142
-{background|bg} color
143
This option specifies the background of the skewb
144
window (resource name "background").
147
This option specifies the border color of the
148
cubelets in the skewb window (resource name "border-
151
-face{0|1|2|3|4|5} <color>
152
This option allows you to change the color of a face
153
(resource name "faceColorN"). In mono-mode, color is
154
represented as the first letter of the color name.
155
On the 2-D version, the faces are ordered top to
156
bottom and left to right on the "t" configuration.
157
The "+-" configuration is physically consistent with
158
the former, so it is ordered "0, 1, 2, 3, 5, 4". If
159
you has two colors that begin with the same letter
160
you should have one in uppercase and one in lower-
161
case to distinguish them in mono-mode. You can
162
change the colors of the faces to make a stupid cube
163
(i.e. all White or in mono-mode all "W"). Unfor-
164
tunately, it will not normally say its solved when
165
its randomized. This would be cheating.
167
2 V7.1 Last change: 29 Aug 2004 3
169
2 Games and Demos XSKEWB(6)
172
This option allows you to access the orient mode
173
(resource name "orient").
176
This option allows you to access the practice mode
177
(resource name "practice").
180
This option specifies the font that will be used
181
(resource name "font").
184
This option specifies the user name for any records
185
made or else it will get your login name (resource
189
2 You must randomize the puzzle before a record is set, other-
190
wise an assumption of cheating is made if it is solved after
194
2 The format is not standard. The reason for this is that
195
this is simple and I do not know what the standard is.
197
2 Skewb2d with default colors, not randomized:
199
1 2 3 B W G Blue, White, Green
203
orient: 0-1 <0 false, 1 true; if 1 then lines on cubies
205
practice: 0-1 <0 false, 1 true>
206
moves: 0-MAXINT <total number of moves>
208
startingPosition: <2 dimensional array of face and
209
corner position and center diamond position, each face
210
has 4 corner pieces and one center piece, if orient
211
mode then orientation number follows face number: 0 up,
212
1 right, 2 down, and 3 left>
214
2 This is then followed by the moves, starting from 1.
215
move #: <face> <corner> <direction> <control>
216
2 Each turn is with respect to a corner on a face.
217
2 The corners start at the upper right and work clockwise.
218
2 Direction is represented as 0 upper right, 1 lower right, 2
219
lower left, 3 upper left, 5 clockwise, 7 counterclockwise, 8
220
up, 9 right, 10 down, and 11 left.
221
2 Control is represented as 0 or 1, 1 if the whole cube is
222
moved at once (here the corner does not matter), 0 if not.
224
2 V7.1 Last change: 29 Aug 2004 4
226
2 Games and Demos XSKEWB(6)
228
2 The xskewb record keeper does not count a control move as a
229
move, but here we do.
232
2 Beyond Rubik's Cube: spheres, pyramids, dodecahedrons and
233
2 God knows what else by Douglas R. Hofstadter, Scientific
234
2 American, July 1982, pp 16-31.
236
2 Mickey's Challenge by Christoph Bandelow.
238
2 Magic Cubes 1996 Catalog of Dr. Christoph Bandelow.
241
2 X(1), xrubik(6), xdino(6), xpyraminx(6), xoct(6), xmball(6),
242
xmlink(6), xpanex(6), xcubes(6), xtriangles(6), xhexa-
246
(Reg.) Copyright 1994-2004, David Albert Bagley
248
2 BUG_REPORTS AND PROGRAM UPDATES
249
2 Send bugs (or their reports, or fixes) to the author:
250
David Albert Bagley, <bagleyd@tux.org>
252
2 The latest version is currently at:
253
ftp://ftp.tux.org/pub/tux/bagleyd/xpuzzles
254
ftp://ibiblio.org/pub/Linux/games/strategy
256
2 V7.1 Last change: 29 Aug 2004 5