Press one of the following keys to rotate a layer clockwise. Hold down space and press a key to make it rotate counterclockwise instead. F - Front layer B - Back layer L - Left layer R - Right layer U - Top layer D - Bottom layer (X/Y/Z) - Rotate cube around that axis Press 0 to scramble the cube, and once you start making turns, the timer will start, and automatically stop when you solve it.
This is one of the projects that I am proudest of! It took a LONG time to make. I started with a 2d representation of a Rubik's cube whose position was defined by a list. Then I spent too long making a 3d engine to draw out the cube. Figuring out how to get the rotations was definitely the hardest part because of complications with the draw order of the different squares. #3d #rubikscube #pen #rubiks #cube #speedcubing #games