This repository is a Magic cube (Rubik's cube) game implemented by Matlab.
- Order:
The order of the Rubik's cube. Range of the value: [2, 9].
- Size:
The block size of the Rubik's cube. Range of the value: Positive number.
- Draw3d:
Draw the Rubik's cube in 3D or 2D mode. Range of the value: True or false.
- Iter:
Times to disrupt the Rubik's cube during initialization. Range of the value: Positive integer number.
- 'W' / 'w':
Rotate front -> up -> back -> bottom.
- 'S' / 's':
Rotate front -> bottom -> back -> up.
- 'A' / 'a':
Rotate front -> left -> back -> right.
- 'D' / 'd':
Rotate front -> right -> back -> left.
- 'Q' / 'q':
Rotate top -> left -> bottom -> right.
- 'E' / 'e':
Rotate top -> right -> bottom -> left.
- '0':
Rotate all rows or columns.
- '1':
Rotate 1th row or column.
...
- 'N' (N = Order):
Rotate Nth row or column.
Run MagicCube.m with Matlab.