Skip to content

robertofiguz/rubiks-cube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Rubiks cube

Rubik's cube solver developed in Python, OpenCV & OpenGL/Pygame

How to run

usage: main.py [-h] [-c]

options:
  -h, --help       show this help message and exit
  -c, --calibrate  Calibrate the colors.

Color Calibration

To calibrate the colors follow the instructions in the top left corner.

Color Calibration

You can select the color on the original camera image and/or adjust the limits as you wish.

When you are happy with the color calibration press ENTER to calibrate the next color.

Face and Color Detection

Start with the white face facing the camera and the green face on top.

Face Detection

Follow the instructions on the bottom left until every cube face is detected.

If you notice that any face was not detected correctly you can press BACKSPACE to revert the last face scan.

Solve the cube

Now that all faces were scanned you can solve the cube following the text instructions on the terminal or replicating the movements on the animated cube

Animated Cube

Text Instructions

Press Enter or Right Arrow to see the next move.

Press Backspace or Left Arrow to redo the last move.

URL for working rubik solver fork: rubik solver

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages