MapAnalyzer.utils

Module Contents

Functions

change_destructable_status_in_grid(grid: np.ndarray, unit: Unit, status: int)

Set destructable positions to status, modifies the grid in place

fix_map_ramps(bot: BotAI)

following https://github.com/BurnySc2/python-sc2/blob/ffb9bd43dcbeb923d848558945a8c59c9662f435/sc2/game_info.py#L246

import_bot_instance(raw_game_data: Response, raw_game_info: Response, raw_observation: ResponseObservation)

import_bot_instance DocString

get_map_file_list()

easy way to produce less than all maps, for example if we want to test utils, we only need one MapData object

MapAnalyzer.utils.change_destructable_status_in_grid(grid: np.ndarray, unit: Unit, status: int)[source]

Set destructable positions to status, modifies the grid in place

MapAnalyzer.utils.fix_map_ramps(bot: BotAI)[source]

following https://github.com/BurnySc2/python-sc2/blob/ffb9bd43dcbeb923d848558945a8c59c9662f435/sc2/game_info.py#L246 to fix burnysc2 ramp objects by removing destructables

MapAnalyzer.utils.import_bot_instance(raw_game_data: Response, raw_game_info: Response, raw_observation: ResponseObservation) → BotAI[source]

import_bot_instance DocString

MapAnalyzer.utils.get_map_file_list() → List[str][source]

easy way to produce less than all maps, for example if we want to test utils, we only need one MapData object

Indices and tables