Search in sources :

Example 1 with SimplePlayerInterface

use of planetwar.SimplePlayerInterface in project SimpleAsteroids by ljialin.

the class GameRunner method main.

// class to run multiple trials of an agent playing Asteroids
public static void main(String[] args) {
    int nTicks = 1000;
    int nTrials = 10;
    SimplePlayerInterface agent;
    agent = getEvoAgent();
    // agent = getRandomAgent();
    ElapsedTimer t = new ElapsedTimer();
    System.out.println(runTrials(agent, nTicks, nTrials));
    System.out.println(t);
}
Also used : SimplePlayerInterface(planetwar.SimplePlayerInterface) ElapsedTimer(utilities.ElapsedTimer)

Aggregations

SimplePlayerInterface (planetwar.SimplePlayerInterface)1 ElapsedTimer (utilities.ElapsedTimer)1