Skip to content

njustesen/hero-aicademy

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
bin
 
 
img
 
 
lib
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

A Java clone of the iOS game Hero Academy.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages