in the advanced_game_state.py file there is the function get_attackers, I would like to call this function in algo_strategy.py however.
How do I do this?
is it something like: AlgoStrategie.get_attackers() ?
The AdvancedGameState is derived from the regular GameState object. So in your on_turn() function, when the game_state variable is created with gamelib.GameState(), just replace it with gamelib.AdvancedGameState() (assuming the advanced game state file is imported). To use the get_attackers function, just call it as a member function of game_state. That is, game_state.get_attackers([arguments here]).
1 Like
Ok got it to work thanks