Make game parameters overridable through game settings
[troll.git] / src / test / java / Main.java
1 import java.util.Properties;
2
3 import com.codingame.gameengine.runner.MultiplayerGameRunner;
4
5 public class Main {
6     public static void main(String[] args) {
7         Properties props = new Properties();
8         props.setProperty("seed", "3");
9         
10         MultiplayerGameRunner gameRunner = new MultiplayerGameRunner();
11         gameRunner.setGameParameters(props);
12
13         gameRunner.addAgent(Player1.class);
14         gameRunner.addAgent(PlayerRand.class);
15         
16         // gameRunner.addAgent("python3 /home/user/player.py");
17         
18         // The first league is classic tic-tac-toe
19         gameRunner.setLeagueLevel(1);
20         // The second league is ultimate tic-tac-toe
21         // gameRunner.setLeagueLevel(2);
22         
23         gameRunner.start();
24     }
25 }