Hero AIcademy is a Java clone of the iOS game Hero Academy. The game features only the Council team and is optimized for simulations and game AI research.
AI p1 = null;
AI p2 = null;
String mapName = "a"; // Name of map file in map folder
boolean graphics = true;
Game game = new Game(null, new GameArguments(graphics, p1, p2, mapName, DECK_SIZE.STANDARD));
game.run();
AI p1 = null;
AI p2 = new RandomAI(RAND_METHOD.BRUTE);
GameArguments gameArgs = new GameArguments(true, p1, p2, "a", DECK_SIZE.STANDARD);
Game game = new Game(null, gameArgs);
game.run();
public class MyAwesomeAI implements AI {
@Override
public Action act(GameState state, long ms) {
List<Actions> actions = state.possibleActions(actions);
return actions.get(0); // Return first possible action
}
}