PyCube is an 3D interactive Rubik's Cube using OpenGL and Pygame.
This program utilizes the following Python modules:
PyOpenGL see also OpenGL
Pygame
NumPy
Python 3.x :
pip install -r requirements.txt
Individual piecesRotation Matrices90 degree rotation of individual pieces on each axisMap CW and CWW rotation to lower/upper case keysImplement all center piecesMap keys and rotation matrix calls to respective center piecesColor center piecesImplement edge piecesImplement corner piecesSolve correct movement of edge piecesUse face patterns to track position of edge/corner piecesFAILURE
Solve correct movement of corner piecesColor edge piecesColor corner piecesVisual tweaks- Test/bug fix cube
- Test solves with PyCube
- Begin implementing reverse moves solver
- ...
This post from stackoverflow was very helpful in creating a solid starting point to use quaternions to rotate a 3 dimensional cube using Python and OpenGL. http://stackoverflow.com/questions/30745703/rotating-a-cube-using-quaternions-in-pyopengl