Train a reinforcement learning agent to play StarCraft II and evaluate how well it generalizes strategy.
Run focused mini-game benchmarks to test a specific AI behavior, like resource collection or unit movement, without the full game complexity.
Pit two AI agents against each other in the same environment to compare different training approaches.
Use the human debug interface to step through what an AI agent perceives at each moment and inspect its decision-making.
Requires the StarCraft II game client (v3.16.1+) installed separately, plus mini-game map files downloaded from the releases page.
PySC2 is a Python library from DeepMind that turns the video game StarCraft II into a testing ground for artificial intelligence research. The idea is that StarCraft II is a complex strategy game with incomplete information, long-term planning requirements, and real-time decision-making, which makes it a challenging and interesting environment for training and evaluating AI agents. The library connects to the actual StarCraft II game client (which must be installed separately, though the free Starter Edition works) and exposes the game as a standard reinforcement learning environment. Reinforcement learning is a technique where an AI learns by taking actions and receiving feedback about whether those actions led to good or bad outcomes. PySC2 gives an AI agent a structured view of the game state, such as positions of units and resources, and accepts structured commands in return. Researchers can run their own AI agents against the game, watch how those agents play, save replays, and use a set of smaller training scenarios called mini-games that isolate specific skills like collecting resources or moving units. These mini-games were designed to test narrower behaviors before tackling the full game. Two agents can also be run against each other in the same environment. A human interface is included as well, primarily for debugging purposes, so a person can step through what the agent sees at each moment and understand why it made particular decisions. The project was a collaboration between DeepMind and Blizzard Entertainment and accompanied a published research paper. Installation is through pip, and it requires Python 3.8 or newer. The full game must be version 3.16.1 or later to include the API that PySC2 depends on. Map files for the mini-games are downloaded separately from the repository's releases page.
← google-deepmind on gitmyhub — every repo by this author, as a profile.
Verify against the repo before relying on details.