This application was inspired by Burkard Polster's video, "How to build and solve a 4D Rubik's cube in physical 3D (no simulator!)" In that video, he shows a physical puzzle, the Hedgehog, which is an "unfolded", 3-dimensional version of a hypothetical 4-dimensional 2x2x2x2 Rubik's Cube. He did this for educational purposes; the first physical 2x2x2x2 cube (in a much more playable form) was constructed by Melinda Green in 2017.

This application, which I call 2D Hedgehog, is a graphical application that simulates a 3-dimensional 2x2x2 Rubik's Cube "unfolded" into 2D, following the same principle. You can click on the various buttons and see how the Hedgehog turns and rotates. To make it easier, a half-unfolded 3D model shows the same state. The 3D model is not animated to keep the code simple.