rubik's cube solver

how it works

back

the idea for this came from this old video of Andrej Karpathy


basics of how it works:

  1. tfjs model finds where the cube is in the frame
  2. opencv.js extracts locations and colors of each sticker
  3. solves cube using simplified version of Herbert Kociemba's Two Phase algorithm

you can find the source code here