A 3x3 Rubik's Cube Solver
NOTE - Kyuubi is currently evolving into a fully functional robot which will be able to solve the cube on its own!
- Python
- Opencv library in Python
- g++
- Download Kyuubi by clicking here
- Extract the downloaded zip file to the Desktop (i.e Kyuubi-master should be at your Desktop)
- Open the terminal and execute the following commands in specified order -
- cd ~/Desktop/Kyuubi-master
- python Train.py
- Your webcam will open showing a 3x3 Grid, now you have to train the program by showing it all the six solved faces of cube.
- To show a face just take the cube so that the colors get filled into the 3x3 grid and then hit the "space" button
- Show the blue face first, followed by Red, Yellow, Orange, White and Green in the specified order
- The program will stop the moment you have fed all the six faces to it (Make sure you follow the order of colors)
- python read.py
- The webcam will open showing the same 3x3 grid but as soon as you place your cube in front of it, It will suggest the color of each cubie detected by it.
- Now Scramble the cube
- Now Keep the Red face on front so that Blue face becomes top
- Now feed the program with the scrambled faces in the following order - Blue, Red, Yellow, Orange, White, Green
- To feed the face just take the face in front of the grid and when you feel that all detected colors are correct, just hit the "space" button
- The program will end when you have fed all the six faces to it
- cd Algorithm
- g++ layer3.cpp
- ./a.out < inp
- cat out.txt
- You will have a set of moves to solve the cube. To read about the moves please read "Moves.txt"
1. Aditya Shankar Tripathi
2. Manish Kumar Sinha
For any bugs, just drop a mail at megatron6496@gmail.com