Get action: API object
The API object for the get_action
method includes:
api.data
This is data that users can use to store information between different get_action calls. This can be helpful for games where history matters. For example, in a previous state, the bot may have seen the opponent in location (3, 2) but is no longer visible in this current state, one could store this coordinate in api.data.previous = (3, 2)
api.log
Use this function to log strings for easier debugging. Example usage: api.log("Debugging")
Last updated