Hero AIcademy
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.
Screenshot
How to run
Human vs. Human
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();
Human vs. AI
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();
How to make your own AI
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
}
}