PySC2 is DeepMind's Python component of the StarCraft II Learning Environment (SC2LE). It exposes Blizzard Entertainment's StarCraft II Machine Learning API as a Python RL Environment. This is a collaboration between DeepMind and Blizzard to develop StarCraft II into a rich environment for RL research. PySC2 provides an interface for RL agents to interact with StarCraft 2, getting observations and sending actions.
We have published an accompanying blogpost and paper, which outlines our motivation for using StarCraft II for DeepRL research, and some initial research results using the environment.
Disclaimer: This is not an official Google product.
If you use the StarCraft II Machine Learning API and/or PySC2 in your research, please cite the StarCraft II Paper
You can reach us at [email protected].
The easiest way to get PySC2 is to use pip:
$ pip install pysc2
That will install the pysc2
package along with all the required dependencies.
If you're running on an older system you may need to install libsdl
libraries
for the pygame
dependency.
Pip will install a few of the binaries to your bin directory. pysc2_play
can
be used as a shortcut to python -m pysc2.bin.play
.
Alternatively you can install PySC2 with git. First clone the PySC2 repo, then
install the dependencies and pysc2
package:
$ git clone https://github.com/deepmind/pysc2.git
$ pip install pysc2/
PySC2 depends on the full StarCraft II game and only works with versions that include the API, which is 3.16.1 and above.