Play and solve a 3x3x3 Rubik's cube with Thistlethwaite's algorithm in Unity C#. (42 Silicon Valley)
Made in Unity version 2018.3.0f2
Recommended screen resolution: 1280 x 768
You can toggle Face Labels
to see the notation follows the Western color scheme:
L
Orange faceR
Red faceD
Yellow faceU
White faceB
Blue faceF
Green face
Arrow Keys
Rotate entire cube.
L
,R
,D
,U
,B
,F
Rotate 90° clockwise.Control
+L
,R
,D
,U
,B
,F
Rotate 180° clockwise.Shift
+L
,R
,D
,U
,B
,F
Rotate 90° counter-clockwise.Backspace
Undo last move.
- Enter sequence of moves in the text field, e.g.
F R2 U' D2 B L'
and then clickReset
to initialize the cube.
- Apply bi-directional breadth first search on 4 subproblems:
- Find path G0 -> G1
- Find path G1 -> G2
- Find path G2 -> G3
- Find path G3 -> G4
- Implementation adapted from Stefan Pochmann's submission for Shortest Program Contest