A Java clone of the iOS game Hero Academy.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.settings
bin
img
lib
maps
src
test
.DS_Store
.classpath
.gitignore
.project
LICENSE
README.md
manifest
mcts.xml
screenshot.jpg

README.md

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

alt text

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
  }
}