rc5- simulates
the moves of a Rubik's 5x5 cube
Calling Sequence:
rc5(ls,Ma)
rc5(ls,Ma,Ret)
Parameters:
ls - a list,
a name or 1
Ma - a matrix
Ret - (optional)
an unevaluatet name
Description:
-
The function rc5 plots a 5x5 Rubik's
cube after some moves. The moves of the 5x5 Rubik cube is one of R1 (outer
right layer is turned 90 degree clockwise), R2 (inner right layer is turned
90 dergee clockwise), Mr (middle right layer is turned 90 degree clockwise),
L1 (outer left layer is turned 90 degree clockwise), L2 (inner left layer
is turned 90 degree clockwise), U1 (upper layer is turned 90 degree clockwise),
U2 (inner upper layer is turned 90 degree clockwise), Md (middle down layer
is turned 90 degree clockwise), D1 (down layer is turned 90 degrees clockwise),
D2 (inner down layer is turned 90 degree clockwise), F1 (outer front layer
is turned 90 degree clockwise), F2 (inner front layer is turned 90 degree
clockwise), Mf (middle front layer is turned 90 degree clockwise), B1 (outer
back layer is turned 90 degree clockwise), B2 (inner back layer is turned
90 degree clockwise) or 1, where no layer is turned.
-
ls is either one of the moves of the
Rubik's cube or a list of moves of the Rubik's cube.
-
Ma must be a 10x15 matrix of type Matrix.
The matrix gives the colors of the sides. The entries of the matrix must
be elements of {1,2,3,4,5,6}. As default, you can use the matrix A5, which
is predefined.
-
The optional third argument Ret is
assigned the corresponding new Matrix.
Examples:
> restart:
> with(rubik);
> rc5(1,A5,'RET');RET;
> rc5([R1,L1,F1],A5);
See Also:
jl
, mb
, mx
, px
, rc2
, rc3
, rc4
,
sb