The Lightsout cube source is released under GNU General Public Licence.
01/10/2000 Solve method failed to return the correct answer when solving an already solved cube. Add more comments to the solve method and find the number of solutions, which is always 64.
5/9/2000 Tweaked the solve method, now quicker.
3/9/2000 Now works in Netscape 6 preview 2 Java -> Javascript does not appear to work so won't display solutions.
Click here to download LightsOut.zip.
Lightsout cube is my first attempt at using the Java3D Library, as a result it borrows ideas from the Java 3D examples, and even borrows Cube.java in totality. As a result (see cube.java license) do not use this applet in a manner which is disparaging to Sun and please don't use it in air traffic control systems.
When writing Lightsout cube applet I decided I had enough re-writing user interfaces in Java, so I decided to utilize javascript to control the applet. Unfortunately use of the Java 3D requires the use of the Java Plugin and in Netscape 4 the Java Plugin is not scriptable.
Web site (c) 2000 Gareth Richards