Skip to content
BurnySc2 edited this page Jul 31, 2018 · 17 revisions

Should I use the pysc2 or python-sc2 library?

If you plan on making scripted hardcoded bots, python-sc2 is simpler in its syntax.

If you want to make a machine learning bot, pysc2 is probably the better choice since it uses the UI and feature layers (spatial interfaces).

How do I do <something>?

Feel free to take a look at the protoss/terran/zerg examples.

What do I have access to in the step() function?

You have access to

all the basic BotAI class properties and functions listed here and here through self.<property_name>,

all the game state variables through self.state.<variable_name>,

all the game info variables through self._game_info.<variable_name>,

your units self.units and visible enemy units self.known_enemy_units contain units of type Unit which also have properties and functions available.

Clone this wiki locally