Since JRobots was written entirely in Java, JRobots can be run from within a web browser. Using a Java enabled web browser, Visit http://mobydisk.com/java/jrobots/game/ to run JRobots online. Use the form to select the particular robots that will compete at the game options. Once you submit the form, you will see the JRobots Java applet appear. So long as the page is active, the game will run to completion.
By viewing the Java console you can see additional information such as game results, statistics, and error information. To open the Java Console under Netscape Communicator select Communicator - Tools - Java Console. Under Microsoft Internet Explorer select View - Java Console.
Running JRobots from the web shows opens only the basic capabilities. You can pit robots against each other and run infinitely long matches. But the real power is not available until you download it to run locally. This way you can create your own robots. JRobots is available for download at http://mobydisk.com/java/jrobots/.
JRobots matches have several options which can be configured each run. Some of these options are only available once downloaded. Most can be selected in the online form.
When running JRobots from the web, a simple interface form is included to select these options. This form does the work of creating a web page with the appropriate APPLET and PARAM tags to send the options to the program. To run JRobots locally, you must create an HTML file with these tags.
<APPLET code="JRobots.class" width=600 height=450> <PARAM name="replay" value="5"> <PARAM name="robots" value="Rook,Counter,Rook,Counter,Sniper"> </APPLET> |
| Example GAME.HTML file showing APPLET and PARAM tags. |
|---|
Once you have created an appropriate HTML file you can view it using a web browser or Sun Microsystems AppletViewer. For local viewing, the HTML file must be in the same directory as the downloaded JRobots class files.
Each robot begins at a random location on the battlefield with 100% health. The battlefield is two dimensional, enclosed, and unobstructed. No robot can exit the area except by being destroyed. Robots are destroyed once they reach 0% health. They are damaged by weapons or collisions. Each robot has three capabilites: Scanning, Moving, and Firing.
Future robots may have other abilities, or may be able to trade off abilities. The possibilities for variations on robot capabilities are unlimited. Some ideas include alternative weapons and scanners, repair, energy allocation, or speed -vs- strength trade-offs. Alternative environments including barriers or hostile forces are possible. Implementation of these is dependent on user response.
When competing robots against each other, you must be running JRobots locally. You must create an HTML file and optionally a text file with a robot batch. The JRobots class files, the robot class files, and the above HTML and text files must be in the same directory.
The batch text file containst a comma separated list of robots, one list on each line of the file. This is similar to the use of the robots parameter. The replay option is still in effect, so each game will be run multiple times if specified.
Rook,Counter Rook,Sniper Counter,Sniper,Rook |
| Example BATCH.TXT file showing 3 matches. |
|---|
Web based competitions could be held in the future. Players could submit their Robot class files, and anyone would be able to download them from the web, or compete with them online. Specific clients could be made to allow a webcast of a match so that everyone can see a real-time view of the game in progress.
Alternative competitons are possible. JRobots includes an announcer who provides a play-by-play analysis of the game as it progresses. Competitions for better AI announcers are possible. Users could implement alternative game layouts, such as a 3-dimensional view of the game.
Copyright ©1999 William Garrison