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 >

License

Apache License V2.0

Follow PySC2

PySC2 Web Site

You Might Also Like
Your top-rated shield against malware and online scams | Avast Free Antivirus Icon
Your top-rated shield against malware and online scams | Avast Free Antivirus

Browse and email in peace, supported by clever AI

Our antivirus software scans for security and performance issues and helps you to fix them instantly. It also protects you in real time by analyzing unknown files before they reach your desktop PC or laptop — all for free.
Free Download
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 Reinforcement Learning Frameworks, Python Reinforcement Learning Libraries, Python Reinforcement Learning Algorithms

Registered

2021-07-30