Solve the Rubik's Cube Using Deep Learning

Solution:



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!


Code (Latest) - Code (Original)

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
Note: For ease of maintenance, this updated version solves the cube using CPUs instead of a GPU. Therefore, solve times will be around 20 seconds instead of 1 second.