★ wanayoo — archive 1999 http://java.webdeveloper.com/Rocks/Nouvelle recherche | Portail wanayoo
internet.com logo To JavaBoutique Home

 Java News
 Latest Applets
 Applet Categories
 Applet Index
 Applet Help
 Submit Applets
 Other Resources
 How-To Java
 Java Reviews
 Java FAQs
 Java Forum
 Java IDEs
To Webdeveloper.com
 Mecklermedia
 Internet.com
 Magazines
 Trade Shows
 Advertise
 Corporate
 Information
 Search
 Subscribe

webreference.com

Search Engine Watch

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




Copyright 1998 Mecklermedia Corporation.
All Rights Reserved. Legal Notices.