Skip to content

Added slice moves, double moves and cube rotations. Added package rubiks-alg. - #2

Open
Hultan wants to merge 17 commits into
yackx:masterfrom
Hultan:master
Open

Hultan wants to merge 17 commits into
yackx:masterfrom
Hultan:master

Conversation

@Hultan

@Hultan Hultan commented Apr 3, 2022

Copy link
Copy Markdown

Added the following functions to package rubik:

  • Slice moves (M, Mc, E, Ec, S, Sc).
  • Double moves (Ud, Udc, Dd, Ddc, Rd, Rdc, Ld, Ldc, Fd, Fdc, Bd, Bdc).
  • Cube rotations (X, Xc, Y, Yc, Z, Zc).

Added the package rubik-alg:

  • ExecuteAlg function, execute an alg (string) and returns a new cube.
  • ReverseAlg function, reverses the provided alg, ex "x F U' L" becomes "L' U F' x'".
  • GetScrambledCube function, returns a scrambled cube and the scramble alg.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant