Law of Accidents
(You may break the Law...but you have to know how!)
Java Applet
Rubik Unbound
By Karl Hörnell, March 11, 1996.
Last modified April 17, 1996.
|
This is yet another Java implementation of the classical Rubik's Cube.
I tried to make the user interface as simple and obvious as possible. You
should be able to figure out how it works. Twist or rotate by pointing
and dragging in "natural" directions.
Press s to scramble and r to restore (while positioning
the mouse cursor somewhere in the applet region).
|
The source code can be found
here, but I
have hardly documented it at all, so it looks rather cryptic.
(An optional parameter, "bgcolor", has been added. If used, it takes as
input a background color as a hexadecimal RGB value, e.g. "25003f" for
deep purple. Default is ordinary light gray.)