Teaching a Neural Network to Solve a Rubik's Cube

DeepCube vs. a beginner-method solver

I trained a neural network to solve a Rubik’s cube without ever showing it a solution, and compared it with the beginner-method solver I wrote in MATLAB a few years ago. Try both below.

Drag to look around

Turn faces with the buttons or the U, D, L, R, F, B keys (hold Shift for a counter-clockwise turn), scramble the cube, then pick a solver. DeepCube runs entirely in your browser and works best on scrambles of up to about 12 moves; the beginner method always finds a solution, just a long one.

The code is on GitHub.