python-sc2
python-sc2 copied to clipboard
A StarCraft II bot api client library for Python 3
It may be helpful to have pages dedicated to the more commonly used classes (for example: `game_state`, `unit`, `units` etc) where the tables of applicable properties, methods etc can be...
Hello. As in the title, on_step does get trigger for me until the 11th second in game time. This does not happen when realtime=False. I've emptied out the on_step method...
When you start a game as a human player vs a bot, the human player has to be player 1. This will not work: ```python sc2.run_game( sc2.maps.get("AbyssalReefLE"), [Bot(sc2.Race.Terran, microbot()),Human(sc2.Race.Protoss)], realtime=True...
Hello, Posting this here, as Github does not support PR's to Wiki. However.. I've made some enhancements to the wiki: * Included installation instructions also to the wiki * Getting...
Hi I am new to sc2 and I installed it tried to just import sc2 and got this error in my python idle Traceback (most recent call last): File "M:\Python36\Lib\site-packages\examples\protoss\cannon_rush.py",...
This can be reproduced by looking at the threebase_voidray.py example, and adding a second call to run_game with a different map. On the second map, calls to get_next_expansion() will produce...
The following are the calculated costs from the game data: ``` cost = bot._game_data.calculate_ability_cost(x.creation_ability) where returned / calculated cost is a tuple: (minerals, vespene) ``` A few of the costs...
I'm trying to make an AI that doesn't hardcode any of the tech tree, and instead infers it from the _game_data attribute of the bot at runtime. So far I'm...
"on_unit_destroyed" gets called with identical unit_tags repeatedly. This usually happens later in the game (7-10+ minutes into the game).