Although it's not J, there's a nice interactive Mathematica version of Rubik's Cube available at:

  http://demonstrations.wolfram.com/RubiksCube/

You can view a very quick and not very impressive animation directly on-line there by clicking the "View web preview" link. You can also run the demonstration without having Mathematica itself, provided you download the free Mathematica Player (a download or around 100MB as I recall). Unfortunately, to see the source code, you need Mathematica itself.

What's nice about this version is that you just click a button to do one of the basic turns. And the graphic is done very nicely in that you can see thin strips of "light" between the individual little cubes. The only thing missing from this demonstration is an automatic solver.


--
Murray Eisenberg                     [EMAIL PROTECTED]
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to