Opposite algorithm.

oppositeAlgorithm(algorithm: string, separator: string): string
Parameters
algorithm (string) The algorithm.
separator (string = ' ') The moves separator (default: ' ')
Returns
string: The new algorithm.

Reverse an algorithm.

reverseAlgorithm(algorithm: string, separator: string): string
Parameters
algorithm (string) The algorithm.
separator (string = ' ') The moves separator (default: ' ')
Returns
string: The new algorithm.

Apply a rotate on an algorithm.

rotateAlgorithm(algorithm: string, axe: string, separator: string): string
Parameters
algorithm (string) The algorithm.
axe (string) The axe ( x , y , z , x' , y' , z' )
separator (string = ' ') The moves separator (default: ' ')
Returns
string: The new algorithm.