Skip to content

Structure of the Game Data Object

gjtrowbridge edited this page Oct 7, 2014 · 12 revisions

Below is an overview of the general structure of the gameData object (useful when designing your hero brain).

Note that you can see/experiment with the full gameData object by running the test_your_hero_code.js script after cloning and downloading this repository.

Hero Object

//Game Object
{
  board: {},
  heroes: [/* array of hero objects */],
  teams: [[heroes on team 1],[heroes on team 2]]
  diamondMines = [/* array of Diamond Mine objects */];
  healthWells = [/* array of Health Well objects */];
  impassables = [/* array of impassable objects (trees) */];
  turn: /* some integer */

}