UNIX / Solaris 8 Software Dictionary 3S Info LegoRacers Other Crap 

       yPass Home > Other Crap > Java Games > solitaire
Marbles
Tetris
Pentix
Colors
Towers of Hanoi
Cross Section
UrbaNoids
Rubik Unbound
Mastermind
Solitaire

Java Solitaire

By Karl Hörnell, February 28, 1996

The following is an example of how to create a graphically pleasing Java applet using only very simple tools. There are no multiple threads, no images, no file accesses and no pre-made UI components. It's all beginners' stuff.


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.