Re-name SkeletonMind.java to some unique name.
From now on, we imagine you changed it to MYMIND.java
In MYMIND.java, edit the line:
public class MYMIND implements Mind
Write your own Mind:
Edit the following methods:
getaction(state) -
By default it returns a random action.
You will want to change this to a non-random action.
To compile:
compile MYMIND
Debug your Mind offline:
To run offline:
runit MYMIND
When you run offline, you can output debug information to stdout:
e.g.
getaction ( State s ) { ... System.out.println ( action ); ... }
Comment out any such outputs before uploading the Mind to the online server.
Submit the Mind to run online:
To make a JAR file:
mkjar MYMIND
Submit MYMIND.jar
using the "Upload Mind" form.
Include an
index.html
file to describe your Mind.
This may link to and include other supporting files.
Your Mind is now online.
It will be on the list of all Minds,
but it will not yet be on the scoreboard list of Minds,
since it has had no runs in the online World yet.
You can now click to run it in the online
World (and get on the scoreboard).
Other Minds can also now call your Mind.
More notes
If your browser tries to re-name tmdk.jar
to tmdk.zip
just re-name it back to tmdk.jar
Edit the following methods:
newrun() -
Put any startup code here.
If you are using other classes, these should be instantiated here.
endrun() -
Put any cleanup code here.
To run offline:
runit MYMIND (optional switches)
The optional switches are:
-graphics - A graphical display will show the creature and its world.
-printscore - The score is printed to standard output at every timestep.
-printstate - The state is printed to standard output at every timestep.