This project aims to help user solve rubik's cube by showing moves in form of arrow on the cube.
Clone this repo in your system and install required libraries from PyPI:
pip install opencv-python
pip install numpy
pip install rubik-solver
execute main.py
to run the program.
There are two main steps:
- Detecting Complete Cube
- Solving Cube
During cube detection, main thing to keep is mind is cube orientation.
- While detecting side with
Yellow Center
, side withRed Center
should beBottom
facing - While detecting side with
White Center
, side withRed Center
should beTop
facing - While detecting any other sides, side with
Yellow Center
should beTop
facing andWhite Center
should beBottom Facing
When the cube face is detected, face preview will be visible in the preview slot. User can append detected side to cube
state by pressing a
.
After complete cube is detected user can press s
to solve the cube and retrieve the solving steps.
To solve the cube, first user have to start with showing the side with Red Center
while side with Yellow Center
faces Top
and
side with White Center
faces Bottom
.