Gamebots Java Client & ExampleBot

Release:    4 April 2001 Subsequent Releases
Author:    Andrew n marshall Sourceforge Project: utbot
URL:    http://www.isi.edu/~ascholer/gamebots/ project summary: http://sourceforge.net/projects/utbot/
project website: http://utbot.sourceforge.net/


Requirements

Optional

Quick Start

This will start the Java Client with the ability to run the ExampleBot demo, which is good for checking out the environment.

Developing Bots

In order to run your own bots, you will also need to add your development classpath to the CLASSPATH environment variable. (Actually, if you look at the BotRunnerApp source, you'll see I'm already attempting to fix this.)

All bots should extend the class edu.isi.gamebots.client.Bot .

Load your by typing there class name (with dots, not slashes) in the "Name" field of the "Add Bot" dialog.

Building the Source Code

We use the ant tool to build our source code. If you have the ant tool installed, you can build the source using our build script (build.xml), specifying the directories that you want your files built to and running ant. Here are the steps:
  1. If you do not already have the ant build tool - Get Ant Here - follow the instructions in the documentation to install ant on your system.
  2. The ant build script looks for a file named build.properties to tell it where to build things like class files, jar files and documentation. Edit the file /src/build.properties.example with the directories that you want to build to and rename the file build.properties.
  3. Open a command line shell in the src directory and type
    >ant <targetname>
    where <targetname> is one of the build targets
       compile (default)
       lib
    (creates executable jar file)
       doc
    (builds javadoc)
       clean
    (cleans misc. files out of source and removes .class files)
       source-release
    (creates a zip file for a source release)
       all-release
    (creates a zip file for a release that includes source and built jar file and docs)
       release
    (builds both source-release and all-release)