GameAPI
Accessible in spawn_policy(api).
Global Information
get_tick(): Returns the current tick of the game (int).get_scraps(): Returns the total scraps available to you (int).get_my_bots(): Returns a list of all bots owned by you (list[Bot]).get_max_energy(): Returns the maximum energy capacity of a bot (int).view: ThePlayerViewobject holding the complete game state. See Player View & Perception.
Sensing
visible_enemies(): Returns a list of all visible enemy bots (list[EnemyBot]).visible_scraps(): Returns a list of all visible scrap entities (list[Scrap]).banks(): Returns a list of visible banks (list[Bank]).energypads(): Returns a list of visible energy pads (list[EnergyPad]).visible_walls(): Returns a list of visible walls (list[Point]).visible_algae(): Returns a list of visible algae (list[Algae]).
Spawning
can_spawn(abilities): ReturnsTrueif you have enough scraps to spawn a bot with the given abilities (list[Ability]).