This repo contains a program to solve and plot the snake cube puzzle. The goal of the snake cube is to arrange the beams of bright and dark blocks into a single 3x3x3 cube.
The solver initially sets up a "flat snake":
flat.mp4
It then examines all possible rotations by brute force. As it turns out there are not one but two possible solutions:
solution1.mp4
solution2.mp4
Have a nice day.
Plotting is done via matplot++. Note that matplot++
has certain system dependencies (e.g. gnuplot
) that are required at runtime.
This project was an excuse for me to implement and learn more about quaternions.