Rocks.java
It's best not to play this game while you're at work--because you may find yourself still playing it when you should be working! And the source code is included!
The object of the game is get the Rocks to pass through the gates to the bottom. Each
rock which makes it to the bottom will increase your score by one. Enter the rocks in the top green starting lanes by clicking in the green lane you wish to start with. You and the computer will take turns adding rocks to the board. If two or more rocks fall through to the bottom in a single turn, the player gets another turn.
Usage: Place these class files: Rocks.class, endNode.class, RockCanvas.class, treeNode.class and sBallInfo.class within your HTML directory.
Java Source: Rocks.java, endNode.java, RockCanvas.java, treeNode.java and sBallInfo.java
HTML Source:
<APPLET CODE="Rocks.class" width=520 height=400>
<PARAM name Color value="white">
</APPLET>
Author: Dick Christoph
|