3D Rubix Cube (3x3) made in Processing:
-Make UI a little nicer/easier
-Generalize to nxn cube
-Try it here. Or,
-Download source files and run RubixCube.exe
-Up/Down arrows moves the cube about the central vertical axis
-Left/Right arrows about the central horizontal axis
-Shift+N randomizes the cube
-Space Bar resets cube to solved
-Press the letter corresponding to the color of the face to turn that face CLOCKWISE, e.g.: G for green O for orange R for red B for blue W for white Y for yellow (The color of a face is the color of its center)
-Press U to undo a move