sb- simulates
the moves of the skewb
Calling Sequence:
sb(ls,Ma)
sb(ls,Ma,Ret)
Parameters:
ls - a list,
a name or 1
Ma - a matrix
Ret - (optional)
an unevaluatet name
Description:
-
The function sb plots the skewb after
some moves. The moves of the skewb is one of FRU (the front right upper
layer is turned 120 degree clockwise), FLU (the front left upper layer
is turned 120 degree clockwise), BRU (the back right upper layer is turned
120 degree clockwise), BDL (the back down right layer is turned 120 degree
clockwise), DFR (the down front right layer is turned 120 degree clockwise),
DFL (the down front left layer is turned 120 degree clockwise) or 1, where
no layer is turned.
-
ls is either one of the moves of the
skewb or a list of moves of the skewb.
-
Ma must be a 4x6 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 As, which
is predefined.
-
The optional third argument Ret is
assigned the corresponding new Matrix.
-
The command with(rubik,sb) allows the
use of the abbreviated form of this command.
Examples:
> restart:
> with(rubik);
> sb(1,As,'Ret');Ret;
> sb(FRU,As);
> sb([BRU,DFR,DFL],As);
See Also:
jl
, mb
, mx
, px
, rc2
, rc3
, rc4
, rc5