Solve the Rubik's Cube Using Deep Learning


Use the mouse to turn the cube.

Turn the faces with the U/D/L/R/B/F keys. Hold shift to turn faces couter-clockwise.

Press scramble to randomly scramble the cube. Press solve to solve the cube using deep learning!

Source Code

If you find this research useful to your work, please cite the following papers:

Solving the Rubik's Cube with Deep Reinforcement Learning and Search
Forest Agostinelli*, Stephen McAleer*, Alexander Shmakov*, Pierre Baldi
Nature Machine Intelligence, Volume 1, 2019

Solving the Rubik's Cube with Approximate Policy Iteration
Stephen McAleer*, Forest Agostinelli*, Alexander Shmakov*, Pierre Baldi
In Proceedings of the 7th International Conference on Learning Representations (ICLR), 2019