PySC2 (StarCraft II Learning Environment)
DeepMind's Python interface to the StarCraft II Learning Environment, exposing the game as an RL testbed for game-agent research.
PySC2 — StarCraft II Learning Environment
PySC2 is DeepMind's Python component of the StarCraft II Learning Environment (SC2LE). It wraps Blizzard's StarCraft II Machine Learning API as a reinforcement-learning environment, letting agents observe the game through simplified feature layers and act through the same interface a human player uses.
Key features
- Gym-style RL interface over the full StarCraft II game via the StarCraft II API
- Feature-layer observations (unit types, health, visibility, minimap) and a large structured action space
- Curated mini-games (build marines, defeat roaches, collect minerals) for focused skill learning
- Support for human-vs-agent, agent-vs-agent, and large-scale replay processing
- Rendering tools to visualize observations and inspect agent behavior
StarCraft II remains one of the hardest RL benchmarks because of imperfect information, huge action spaces, and long time horizons, making PySC2 a standard testbed for NPC and game-agent behavior research. Note: it requires an installed copy of the StarCraft II game plus the free map packs.
Curated mirror of the open-source PySC2 (Apache-2.0). Get it from the source.