This project is a Rubik's Cube solver that uses camera-based colour state detection during the capture stage and Thistlethwaite's algorithm in the solving stage.
- Ensure that Python version 3.11 or later is installed on your system.
- For UNIX systems, verify that
tkinter
is installed (see instructions below).
- Install Python
- Download and install Python (>=3.11) from the official Python website
- Install
tkinter
(UNIX systems only)- On macOS
brew install python-tk@3.11
- On Ubuntu
sudo apt install python3.11-tk
- On macOS
- Clone the repository
git clone https://github.com/simran-ss-sandhu/Rubiks-Cube-State-Recognition.git
- Navigate to the project directory
cd Rubiks-Cube-State-Recognition
- Set up a virtual environment (optional but recommended)
- Windows
python -m venv venv && venv\Scripts\activate
- UNIX (Linux, MacOS, etc.)
python -m venv venv && source venv/bin/activate
- Windows
- Install dependencies
pip install -e .
- Ensure you're using a Python version >= 3.11. If you have multiple Python versions installed, you may need to reference a specific version (e.g.
python3.11
instead ofpython
)
Start the project by using the following command in the project directory:
python -m rubiks_cube_state_recognition