A rubik's cube solver.
https://haidargit.github.io/3x3_rubiksolver/
├── cube
│ └── js
│ ├── lbl.js # Layer by layer algorithm
│ ├── two-phase.js # Two-phase algorithm
│ ├── util.js # Type, shuffle and reset
│ └── initial.js # Initial a cube
└── lib
├── cubejs # Two-phase algorithm
└── cuber # Rubik's cube simulator
The cube simulator is from Cuber.
Back(B)
-----------
/ Up(U) /|
/ 1 / |
----------- Right(R)
| | |
Left(L) | Front(F) | .
| | /
| |/
-----------
Down(D)
- Standing(S): The layer between F and B
- Middle(M): The layer between L and R
- Equator(E): The layer between U and D
- Front: Blue
- Back: Green
- Left: Orange
- Right: Red
- Up: Yellow
- Down: White
A capital letter by each face itself means a clockwise rotation of the face while a counterclockwise turn is marked by a small letter.
For example:
-
U: A quarter clockwise turn on the Up face (90°).
-
u: A quarter counterclockwise turn on the Up face (-90°).
-
S/s: Rotate slice S like a F/f
-
M/m: Rotate slice M like a L/l
-
E/e: Rotate slice E like an U/u
- X/x: Rotate the cube like a R/r
- Y/y: Rotate the cube like an U/u
- Z/z: Rotate the cube like a F/f
- The First Layer Edges
- The First Layer Corners
- The Second Layer
- The Top Cross
- The Third Layer Corners (Position)
- The Third Layer Corners (Orient)
- The Third Layer Edges
The JavaScript implentation of Herbert Kociemba's two-phase algorithm is from cube.js.