Solitaire Board Game

Description

In this homework you are going to write a solitaire board game Sol.java. The game originated in France, where it is said to have been invented by an imprisoned nobleman. It was introduced into England in the late 1700s and has since spread to other parts of the world.
sol1

Demo

Click here for a demo.

Rules

Detail Description

1. click on smiley will highlight the button
sol2

2. click on other smiley will highlight the button
sol3

3. click on the center red spot (hole). The highlighted smiley jump to the red spot. The smiley that has been jumped over is removed.
sol4

4. There will be a beep sound if you click on a red spot that you can't move the piece to.

5. The game ends until there only one piece left. My program does not do anything when the game ends (I am too lazy to write codes to take care of the ending).

6. At any time, you can click the restart button to restart the game.
sol1

Images

Right click on the images to download them.
occupied
occupied.gif
occupied
empty.gif
You can substitute these 2 images by another other images but you must named them occupied.gif and empty.gif.
You can find more icons at

Things that I don't care

Things that I care

Hint

What to submit

Call your source code file Sol.java. If you use other pictures, please named them occupied.gif and empty.gif. Put these files in your submit folder. Do not place this file inside another folder within your submit folder.

Remark

Solution

Sol.java