itsdaveba
Member
Hello everyone,
As a practice project for building a Python package, I have created a Cube Solver in Python that implements both the Kociemba and Thistlethwaite algorithms. It’s currently a command-line interface (no graphics just yet, sorry), but I plan to add a GUI in the future.
All you need is Python >= 3.9, and it should work on Windows, macOS, and Linux. To install it, run the following command in your terminal:
Once installed, you can solve any 3x3 cube using a command like the one below (this example solves the superflip):
For more detailed information about the command-line and cube representation, check out the GitHub repo: https://github.com/itsdaveba/cube-solver
The first time you run the solver, it will take about 5 minutes to generate the tables needed to solve the cube. While Python isn’t the fastest language, it's very popular and easy to use. To speed things up, the package uses C internally to build the tables for faster execution. There’s also detailed documentation available here: https://cube-solver.readthedocs.io
For those interested in the programming side (or in learning some programming by combining Python and the Rubik's Cube), you can also use the Cube Solver in your own code, see an example here. You also might be interested in checking the documentation for the Cube, Maneuver and BaseSolver modules, as you can do some interesting stuff with them
Please let me know if you try it out. I would love to hear your thoughts and any feedback you might have. Thanks!
As a practice project for building a Python package, I have created a Cube Solver in Python that implements both the Kociemba and Thistlethwaite algorithms. It’s currently a command-line interface (no graphics just yet, sorry), but I plan to add a GUI in the future.
All you need is Python >= 3.9, and it should work on Windows, macOS, and Linux. To install it, run the following command in your terminal:
Code:
pip install cube-solver
Once installed, you can solve any 3x3 cube using a command like the one below (this example solves the superflip):
Code:
cube solve WBWOWRWGWOWOBOGOYOGWGOGRGYGRWRGRBRYRBWBRBOBYBYGYOYRYBY
For more detailed information about the command-line and cube representation, check out the GitHub repo: https://github.com/itsdaveba/cube-solver
The first time you run the solver, it will take about 5 minutes to generate the tables needed to solve the cube. While Python isn’t the fastest language, it's very popular and easy to use. To speed things up, the package uses C internally to build the tables for faster execution. There’s also detailed documentation available here: https://cube-solver.readthedocs.io
For those interested in the programming side (or in learning some programming by combining Python and the Rubik's Cube), you can also use the Cube Solver in your own code, see an example here. You also might be interested in checking the documentation for the Cube, Maneuver and BaseSolver modules, as you can do some interesting stuff with them
Please let me know if you try it out. I would love to hear your thoughts and any feedback you might have. Thanks!
