ai class: tron project
ai class: tron project
spring 2006 / prof sklar.
Below is the source code for the Tron game, along with classes for players
controlled by a genetic program (GP) and a neural network (NN).
Download all of these files into a single directory and compile the
five source files (Tron, Arena, Player, HumanPlayer and MyPlayer).
For project #2, you will need to write code that goes into MyPlayer.java.
- Tron.java
this is the top-level class, where the main() method is.
it also contains the GUI.
- Arena.java
this is the class with the canvas and thread that controls the game.
- Player.java
this is the parent class for all types of players.
- HumanPlayer.java
this is the code for the human-controlled player.
- MyPlayer.java
this is the code for the player that you will write.
currently, it contains two "dummy" behaviors.
one is random, but this is a stupid player that crashes frequently.
the second is a "tit for tat" player, which means that it copies the other
(human) player.
- GPPlayer.class
this is the compiled class for the GP-controlled player.
you don't need to see the complex and ugly source code...
Don't try to look at it in the browser---just download it.
- gp.2220000
this is the data file for the GP-controlled player.
Don't try to look at it in the browser---just download it.
- NNPlayer.class
this is the compiled class for the neural network controlled player.
you don't need to see the complex and ugly source code...
Don't try to look at it in the browser---just download it.
- nn.700
this is the data file (of weights) for the neural network player.
Don't try to look at it in the browser---just download it.