www.randelshofer.ch |
RubikPlayer 4.1.1 | © Werner Randelshofer |
Readme Changes License |
Read meContentsPurpose ^
Purpose |
Parameter-Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
code | string | The
name of the applet class. This parameter must have the value "ch.randelshofer.rubik.RubikPlayerApp.class". | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
archive | string | The
name of the file that holds the applet class. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
width | int | The
width of the applet. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
height | int | The
height of the applet | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scriptLanguage | string |
The language (notation) of the script.
(see here for more details): | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scriptType | string | The type of the script. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
script | string | The
script. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
scriptProgress | int | Position
of the progress bar. Positive values are offsets from the start of the script,
negative values are offsets from the end of the script. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
initScript | string | An initScript is used to set up the initial position of the cube. Default value: no script |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
displayLines | int | Number
of lines of the script to display. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
alpha | int | Alpha
view angle of the cube. Range: -90..90 Default value: 45 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
beta | int | Beta
view angle of the cube. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
colorTable | int, int, ... | RGB color
look up table. The colors in this table can be referenced by the faces and the
stickers attribute. The table may contain up to 54 different values.
Range:
0x000000..0xffffff Tip: For ease of use, you can assign
names to the colors. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
faces | int, int, ... | Maps colors
from the color table to the faces of the cube. The face values are organized like this:
Tip: You can reference a color defined in "colorsTable" by its index or by its name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
stickers | ints | Maps
colors from the color table to the stickers of the cube; The sticker values are organized like this:
Tip: You can reference a color defined in "colorsTable" by its index or by its name. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backgroundColor | int | Specifies
the background color of the applet. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
backgroundImage | URL | Specifies
the url of the background image. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
ambientLightIntensity | float | Specifies
the intensity of the ambient light. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lightSourceIntensity | float | Specifies
the intensity of the light source. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lightSourceLocation | int,int,int | Specifies
the location of the light source using a right-handed X, Y, Z coordinate system.
+X is horizontal to the right, +Y is the local gravitational up, +Z is directly
toward the viewer.. |
The RubikPlayer applet supports the following script notations:
BandelowENG
HarrisENG
RandelshoferGER
ScriptFRA
SupersetENG
TouchardDeledicqFRA
This is an English version of
Bandelow's notation published in the following book:
Bandelow, Christoph. (1981). Einführung in die Cubologie. Vieweg.
Surface layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | R | U | F | L | D | B |
90° anti-clockwise | R' | U' | F' | L' | D' | B' |
180° clockwise | R2 | U2 | F2 | L2 | D2 | B2 |
180° anti-clockwise | R2' |
U2' |
F2' |
L2' |
D2' |
B2' |
Mid-layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | MR | MU | MF | ML | MD | MB |
90° anti-clockwise | MR' | MU' | MF' | ML' | MD' | MB' |
180° clockwise | MR2 | MU2 | MF2 | ML2 | MD2 | MB2 |
Cube rotations: | Right | Up | Front | Left | Down | Back |
90° clockwise | CR | CU | CF | CL | CD | CB |
90° anti-clockwise | CR' | CU' | CF' | CL' | CD' | CB' |
180° clockwise | CR2 | CU2 | CF2 | CL2 | CD2 | CB2 |
Cube rotations: | ||||||
Over two axis: | CFU | CUB | CRU | CUL | CRF | CLF |
Over t hree axis: | CUFL | CURF | CRUB | CBUL | ||
CLFO | CFRU | CBUR | CLUB | |||
Permutation: | Right | Up | Front | Left | Down | Back |
Faces | r | u | f | l | d | b |
Signs | + | - | ++ | |||
Expressions: | ||||||
repeat x n-times | (
x ) n | |||||
invert x | ( x
) ' | |||||
invert x n-times | (
x ) n ' | |||||
permutate parts | ( [sign] part,
part, part, ...) |
This notation by Dan Harris uses single letter tokens for all moves.
Surface layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | R |
U |
F |
L |
D |
B |
90° anti-clockwise | R' |
U' |
F' |
L' |
D' |
B' |
180° clockwise | R2 |
U2 |
F2 |
L2 |
D2 |
B2 |
180° anti-clockwise | R2' |
U2' |
F2' |
L2' |
D2' |
B2' |
Two-layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | r |
u |
f |
l |
d |
b |
90° anti-clockwise | r' |
u' |
f' |
l' |
d' |
b' |
180° clockwise | r2 |
u2 |
f2 |
l2 |
d2 |
b2 |
180° anti-clockwise | r2' |
u2' |
f2' |
l2' |
d2' |
b2' |
Mid-layer twists: | Right | Up | Front | Left | Down | Back |
90° | M' |
E' |
S |
M |
E |
S' |
180° | M2' |
E2' |
S2 |
M2 |
E2 |
S2' |
Slice twists: | Right | Up | Front | Left | Down | Back |
90° | m' |
e' |
s |
m |
e |
s' |
180° | m2' |
e2' |
s2 |
m2 |
e2 |
s2' |
Cube rotations: | Right | Up | Front | Left | Down | Back |
90° | x |
y |
z |
x' |
y' |
z' |
180° | x2 |
y2 |
z2 |
x2' |
y2' |
z2's |
Expressions: | ||||||
sequence x y | { x y } |
|||||
repeat x n-times | ( x ) * n |
|||||
invert x | ( x ) ' |
|||||
invert x n-times | ( x ) * n ' |
|||||
comments | [ bla bla ] |
This notation by Walter Randelshofer is based on the german version of Bandelow's notation. It does not support multi-angle cube rotations, and it uses hyphens instead of apostrophes to improve the readability of scripts.
Surface layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | R | O | V | L | U | H |
90° anti-clockwise | R- | O- | V- | L- | U- | H- |
180° clockwise | R2 | O2 | V2 | L2 | U2 | H2 |
Mid-layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | MR | MO | MV | ML | MU | MH |
90° anti-clockwise | MR- | MO- | MV- | ML- | MU- | MH- |
180° clockwise | MR2 | MO2 | MV2 | ML2 | MU2 | MH2 |
Cube rotations: | Right | Up | Front | Left | Down | Back |
90° clockwise | BR | BO | BV | BL | BU | BH |
90° anti-clockwise | BR- | BO- | BV- | BL- | BU- | BH- |
180° clockwise | BR2 | BO2 | BV2 | BL2 | BU2 | BH2 |
Permutation: | Right | Up | Front | Left | Down | Back |
Faces | r | o | v | l | u | h |
Signs | + | - | ++ | |||
Expressions: | ||||||
repeat x n-times | (
x ) n | |||||
invert x | ( x
) - | |||||
invert x n-times | (
x ) -n | |||||
permutate parts | ( [sign] part,
part, part, ...) |
This is a French notation by Vincent Varoquaux.
Surface layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | Dh |
Hg |
Fm |
Gb |
Bd |
Am |
90° anti-clockwise | Db |
Hd |
F |
Gh |
Bg |
A |
180° clockwise | DD |
HH |
FF |
GG |
BB |
AA |
Mid-layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | Mh |
MCg |
MFg |
Mb |
MCd |
MFd |
180° clockwise | MM |
MCC |
MFF |
|||
Cube rotations: | Right | Up | Front | Left | Down | Back |
90° clockwise | Ch |
Cg |
CRd |
Cb |
Cd |
CRg |
180° clockwise | CC |
CGG |
CRR |
|||
Permutation: | Right | Up | Front | Left | Down | Back |
Faces | d |
h |
f |
g |
b |
a |
Signs | + |
- |
++ |
|||
Expressions: | ||||||
repeat x n-times | ( x ) n |
|||||
invert x | ( x ) ' |
|||||
invert x n-times | ( x ) n' |
|||||
permutate parts | ( [sign] part, part, part,
...) |
This is a superset of Bandelow's notation. The superset adds two-layer twists and slice twists to the notation.
Surface layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | R |
U |
F |
L |
D |
B |
90° anti-clockwise | R' |
U' |
F' |
L' |
D' |
B' |
180° clockwise | R2 |
U2 |
F2 |
L2 |
D2 |
B2 |
180° anti-clockwise | R2' |
U2' |
F2' |
L2' |
D2' |
B2' |
Two-layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | TR |
TU |
TF |
TL |
TD |
TB |
90° anti-clockwise | TR' |
TU' |
TF' |
TL' |
TD' |
TB' |
180° clockwise | TR2 |
TU2 |
TF2 |
TL2 |
TD2 |
TB2 |
180° anti-clockwise | TR2' |
TU2' |
TF2' |
TL2' |
TD2' |
TB2' |
Mid-layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | MR |
MU |
MF |
ML |
MD |
MB |
90° anti-clockwise | MR' |
MU' |
MF' |
ML' |
MD' |
MB' |
180° clockwise | MR2 |
MU2 |
MF2 |
ML2 |
MD2 |
MB2 |
Slice twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | SR |
SU |
SF |
SL |
SD |
SB |
90° anti-clockwise | SR' |
SU' |
SF' |
SL' |
SD' |
SB' |
180° clockwise | SR2 |
SU2 |
SF2 |
SL2 |
SD2 |
SB2 |
Cube rotations: | Right | Up | Front | Left | Down | Back |
90° clockwise | CR |
CU |
CF |
CL |
CD |
CB |
90° anti-clockwise | CR' |
CU' |
CF' |
CL' |
CD' |
CB' |
180° clockwise | CR2 |
CU2 |
CF2 |
CL2 |
CD2 |
CB2 |
Cube rotations: | – | – | – | – | – | – |
Over two axis: |
CFU |
CUB |
CRU |
CUL |
CRF |
CLF |
Over t hree axis: | CUFL |
CURF |
CRUB |
CBUL |
||
CLFO |
CFRU |
CBUR |
CLUB |
|||
Permutation: | Right | Up | Front | Left | Down | Back |
Faces | r |
u |
f |
l |
d |
b |
Signs | + |
- |
++ |
|||
Expressions: | ||||||
repeat x n-times | ( x ) n |
|||||
invert x | ( x ) ' |
|||||
invert x n-times | ( x ) n ' |
|||||
permutate parts | ( [sign] part, part, part,
...) |
This is a French notation by Jean-Baptiste Touchard and André Deledicq.
Surface layer twists: | Right | Up | Front | Left | Down | Back |
90° clockwise | D |
H |
A |
G |
B |
P |
90° anti-clockwise | D- |
H- |
A- |
G- |
B- |
P- |
180° | D2 |
H2 |
A2 |
G2 |
B2 |
P2 |
Slice twists: | Right | Up | Front | Left | Down | Back |
90° | Ds |
Hs |
As |
Gs |
Bs |
Ps |
180° | D2s |
H2s |
A2s |
G2s |
B2s |
P2s |
Expressions: | ||||||
repeat x n-times | ( x ) n |
|||||
invert x | ( x ) - |
|||||
invert x n-times | ( x ) -n |
Example 1 | No parameters are set. |
Example 2 | All parameters are explicitly set to their default values. |
Example 3 | Demonstrates
the backgroundColor parameter. |
Example 4 | Demonstrates
the alpha and beta parameters. |
Example 5 | Demonstrates
the colorTable parameter. |
Example 6 | Demonstrates
the colorTable and faces parameters. |
Example 7 | Demonstrates
the stickers parameter. |
Example 8 | Demonstrates
the scriptLanguage , script and displayLines
parameters. |
Example 9 | This example uses all parameters together to show a maneuver, which moves an edge into its right position. |
Example 10 | Demonstrates
the lightSourcePosition parameter. |
Example 11 | Demonstrates
the ambientLightIntensity and lightSourceIntensity parameters. |
Example 12 | Demonstrates
the backgroundImage parameter. |
Example 13 | Demonstrates the use of disjoint cycle permutations using the Bandelow ENG notation. |
Example 14 | Demonstrates the use of Slice-Twists using the Superset ENG notation. |
Example 15 | Demonstrates the use of Two-Layer Twists using the Superset ENG notation. |
Example 16 | Demonstrates the difference between a Generator and a Solver
script. (Use of the scriptType parameter). |
Example 17 | Demonstrates the use of the initScript parameter. |
Example 18 | Demonstrates the use of named colorTable values. |
Test 1 | Stress test. Features a large number of applets on a single page. |
RubikPlayer © 2000-2003
Werner Randelshofer, Staldenmattweg 2, Immensee,
CH-6405, Switzerland
http://www.randelshofer.ch/
werner.randelshofer@bluewin.ch
All
Rights Reserved.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. or other countries, and are used under license.
RubikPlayer
is not derived from, is not associated with and is not endorsed or sponsered by
the owner of the RUBIK'S CUBE Trademark. This owner is Seven Towns Limited, the
manufacturer and worldwide distributor of the RUBIK'S CUBE three dimensional puzzle
and provider of an electronic version of the puzzle via its official
web site.