Rubik's Cube Solver
A 3x3 Rubik's Cube solver written in C, with a 3D OpenGL viewer.
Overview
A command-line tool and a 3D viewer for a 3x3 Rubik's Cube, with a solver on the way. It's early in development.
Done so far
- Cube state representation, with all 12 face moves (U, D, R, L, F, B and their inverses).
- An OpenGL window skeleton using GLFW and glad that builds and runs.
- A Makefile that builds both the CLI and the viewer.
Design
The cube logic has no OpenGL dependency. The CLI and the solver only use cube.c and moves.c, while everything graphical (window, shaders, mesh, camera, animation) lives separately under src/render/. That means the solver can be built and tested without ever opening a window.
Next
- A move-notation parser and a scramble function.
- A test harness that checks every move against its inverse.
- A solver using the beginner's layer-by-layer method.
- Rendering the cube in OpenGL, with animated moves.