2026-02-05 16:27:10 +01:00
|
|
|
package fr.iut_fbleau.HexGame;
|
|
|
|
|
|
|
|
|
|
import fr.iut_fbleau.GameAPI.Player;
|
|
|
|
|
|
|
|
|
|
public class ArenaMain {
|
|
|
|
|
public static void main(String[] args) {
|
2026-02-06 11:25:47 +01:00
|
|
|
int size = 7;
|
|
|
|
|
if (args.length >= 1) {
|
|
|
|
|
try { size = Integer.parseInt(args[0]); } catch (NumberFormatException ignored) {}
|
|
|
|
|
}
|
|
|
|
|
Arena arena = new Arena(size);
|
2026-02-06 12:12:46 +01:00
|
|
|
arena.addBot(new RandomBot(Player.PLAYER1, 24015L)); // Correct constructor usage
|
2026-02-05 16:27:10 +01:00
|
|
|
arena.addBot(new MiniMaxBot(Player.PLAYER2));
|
|
|
|
|
arena.addBot(new HeuristicBot(Player.PLAYER1));
|
|
|
|
|
arena.addBot(new MonteCarloBot(Player.PLAYER2)); // Correct constructor usage
|
|
|
|
|
|
|
|
|
|
arena.run();
|
|
|
|
|
}
|
|
|
|
|
}
|