The Pyraminx Cube Solver is a Python program to solve the Pyraminx cube in the least amount of moves and uses a computer vision feature to input the colors of the cube. The project has been implemented on a Raspberry Pi 3B and uses a Raspberry Pi Camera V3 module.
The program finds the solving state by searching backwards in a set of generated combinations of the Pyraminx cube.
Run the code "GenerateCombination.py". It will create a JSON file that contains all 933,120 states starting from the solved state.
The code uses the BFS algorithm to iterate over all possibilities, because the BFS algorithm works much better for finding the shortest path in these types of puzzles.
To run the code without using the computer vision feature, run "solve.py".
To use the computer vision feature, run "vision.py".
