Skip to main content

an AI solver for the Rubik's Cube

Project description

Magic Cube AI Solver

The common solutions to the magic cube (a.k.a Rubik's Cube) involve one of the two:

  1. Unreasonable amount of resources - CPU, memory, etc. or,
  2. A very large number of steps

It has been shown that any 3x3x3 cube can be solved using no more than 26 quarter turns (90 degrees rotations of the cube's faces), yet the efficient solvers tend to yield solutions with dozens of turns.

The usual AI methods don't work well with this problem due to the complex nature of the group which is induced by the cube. Namely, the A* search algorithm needs a good heuristic to be able to efficiently cover its search space, and those are hard to come up with.

We propose the following approach:

  • Use Machine Learning to learn a heuristic
  • Perform A* search with the learned heuristic

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cubeai-0.0.3.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

cubeai-0.0.3-py3-none-any.whl (9.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page