simpmoves-
simplification of moves of a Rubik's like puzzle
Calling Sequence:
simpmoves(a)
Parameters:
a - a list,
a name or 1
Description:
-
The function simpmoves simplifies the
moves of a Rubik's like puzzle. For the names of the rudimental moves see
the functions jl
, mb
, mx
, px
, rc2
, rc3
, rc4
, rc5
or sb
of the corresponding puzzles jewel, masterball, megaminx, pyraminx, Rubik's
2x2 cube, Rubik's 3x3 cube, Rubik's 4x4 cube, Rubik's 5x5 cube or skewb.
-
The input is either a list containing
the moves, a name representing a move or the identity 1.
-
Output of the function is either a
list containing the moves, a move or the identity 1.
-
Let X be a rudimental move of the jewel,
the Rubik's 2x2 cube, Rubik's 3x3 cube, Rubik's 4x4 cube or the Rubik's
5x5 cube, then X^3=X^(-1) and X^(-1)X=1. If X is a rudimental move of the
pyraminx or the skewb then X^2=X^(-1) and X^(-1)X=1. If X is a rudimental
move of the megaminx, then X^4=X^(-1) and X^(-1)X=1.
-
The command with(rubik,simpmoves) allows
the use of the abbreviated form of this command.
Examples:
> restart:
> with(rubik):
> X:=[R^9,R,L,1,1/L];
> simpmoves(X);
See Also:
mulmoves,
invmoves