|
If you are not familiar with this game, the
object is to remove as many marbles as possible from the board. The
only legal moves are horizontal or vertical jumps with one marble over
another to an empty hole on the other side, whereupon the marble that
was jumped over goes away. To move, just drag the marbles in some legal
direction. And here is the source code. I found this exemple in a CD-ROM with java applets and made some modifications (ie corrected bugs and introduced sound) in the source code. |
|
The classical Rubik's Cube.
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). |