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
New on the Java Boutique:
New Review:
Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling
API boasts simplicity, ease-of-integration, a well-rounded feature
set, and it's free!
New Applet:
Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA
sequences into three useful formats.
Elsewhere on internet.com:
WebDeveloper Java
Lots of Java information on webdeveloper.com
WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.
ScriptSearch Java
Hundreds of free Java code files to download.
jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.
|