Skip to content
/ Rubik Public

Play and solve a 3x3x3 Rubik's cube with Thistlethwaite's algorithm in Unity C#. (42 Silicon Valley)

Notifications You must be signed in to change notification settings

ashih42/Rubik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubik

Play and solve a 3x3x3 Rubik's cube with Thistlethwaite's algorithm in Unity C#. (42 Silicon Valley)

superflip

Made in Unity version 2018.3.0f2
Recommended screen resolution: 1280 x 768

Releases

Notation

You can toggle Face Labels to see the notation follows the Western color scheme:

  • L Orange face
  • R Red face
  • D Yellow face
  • U White face
  • B Blue face
  • F Green face

Controls

Camera Controls

  • Arrow Keys Rotate entire cube.

Cube Operations

  • 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.

Initializing Cube State

  • Enter sequence of moves in the text field, e.g. F R2 U' D2 B L' and then click Reset to initialize the cube.

Notes on Thistlethwaite's Algorithm

  • 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

About

Play and solve a 3x3x3 Rubik's cube with Thistlethwaite's algorithm in Unity C#. (42 Silicon Valley)

Resources

Stars

Watchers

Forks

Packages