Update javaAPI/fr/iut_fbleau/HexGame/Arena.java
This commit is contained in:
@@ -51,12 +51,12 @@ public class Arena {
|
||||
}
|
||||
|
||||
private Result playMatch(AbstractGamePlayer bot1, AbstractGamePlayer bot2) {
|
||||
IBoard board = new HexBoard(11); // Standard 11x11 Hex board
|
||||
IBoard board = new HexBoard(11);
|
||||
EnumMap<Player, AbstractGamePlayer> players = new EnumMap<>(Player.class);
|
||||
players.put(Player.PLAYER1, bot1);
|
||||
players.put(Player.PLAYER2, bot2);
|
||||
|
||||
Simulation simulation = new Simulation(board, players); // Ensure Simulation is correctly imported
|
||||
Simulation simulation = new Simulation(board, players);
|
||||
return simulation.run();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user