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. The easiest way to get PySC2 is to use pip. That will install the pysc2 package along with all the required dependencies. virtualenv can help manage your dependencies. You may also need to upgrade pip: pip install --upgrade pip for the pysc2 install to work. If you're running on an older system you may need to install libsdl libraries for the pygame dependency.

Features

  • PySC2 depends on the full StarCraft II game and only works with versions that include the API
  • PySC2 should work on MacOS and Windows systems running Python 2.7+ or 3.4+
  • PySC2 has many maps pre-configured, but they need to be downloaded into the SC2 Maps directory before they can be played
  • You can run an agent to test the environment
  • The UI shows you the actions of the agent and is helpful for debugging and visualization purposes
  • To specify the agent's race, the opponent's difficulty, and more, you can pass additional flags

Project Samples

Project Activity

See All Activity >

Categories

Games, Education

License

Apache License V2.0

Follow PySC2

PySC2 Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of PySC2!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Python

Related Categories

Python Games, Python Education Software

Registered

2021-07-30