mb- simulates
the moves of the masterball
Calling Sequence:
mb(ls,Ma)
mb(ls,Ma,Ret)
Parameters:
ls - a list,
a name or 1
Ma - a matrix
Ret - (optional)
an unevaluatet name
Description:
-
The function mb plots the masterball
after some moves. The moves of the masterball is one of Br1, Br2, Br3,
Br4, which moves the layer clockwise 45 degree horizontally, where Br1
moves the down layer, Br2 the upper layer, Br3 the middle down layer and
Br4 the upper middle layer, or one of Bf1, Bf2, Bf3, Bf4, Bf5, Bf6, Bf7,
Bf8 which moves the layer clockwise 180 degree vertically.
-
ls is either one of the moves of the
masterball or a list of moves of the masterball.
-
Ma must be a 4x8 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,7,8}. As default, you can use the matrix Ab,
which is predefined.
-
The optional third argument Ret is
assigned the corresponding new Matrix.
Examples:
> restart:
> with(rubik);
> mb(1,Ab,'Ret');Ret;
> mb(Br3,Ab);
> mb([Br4,Bf2],Ab);
See Also:
jl
, mx
, px
, rc2
, rc3
, rc4
, rc5
, sb