-
Notifications
You must be signed in to change notification settings - Fork 175
FAQ
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).
Feel free to take a look at the protoss/terran/zerg examples.
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.