Skip to main content
QUICK REVIEW

[Paper Review] TStarBots: Defeating the Cheating Level Builtin AI in StarCraft II in the Full Game

Peng Sun, Xinghai Sun|arXiv (Cornell University)|Sep 19, 2018
Reinforcement Learning in RoboticsComputer Science8 references54 citations
TL;DR

The paper presents two full-game StarCraft II agents, TStarBot1 (macro-action based DRL) and TStarBot2 (hierarchical macro-micro with rules), that defeat built-in cheating AIs from levels 1 to 10 in a 1v1 Zerg-vs-Zerg full game.

ABSTRACT

Starcraft II (SC2) is widely considered as the most challenging Real Time Strategy (RTS) game. The underlying challenges include a large observation space, a huge (continuous and infinite) action space, partial observations, simultaneous move for all players, and long horizon delayed rewards for local decisions. To push the frontier of AI research, Deepmind and Blizzard jointly developed the StarCraft II Learning Environment (SC2LE) as a testbench of complex decision making systems. SC2LE provides a few mini games such as MoveToBeacon, CollectMineralShards, and DefeatRoaches, where some AI agents have achieved the performance level of human professional players. However, for full games, the current AI agents are still far from achieving human professional level performance. To bridge this gap, we present two full game AI agents in this paper - the AI agent TStarBot1 is based on deep reinforcement learning over a flat action structure, and the AI agent TStarBot2 is based on hard-coded rules over a hierarchical action structure. Both TStarBot1 and TStarBot2 are able to defeat the built-in AI agents from level 1 to level 10 in a full game (1v1 Zerg-vs-Zerg game on the AbyssalReef map), noting that level 8, level 9, and level 10 are cheating agents with unfair advantages such as full vision on the whole map and resource harvest boosting. To the best of our knowledge, this is the first public work to investigate AI agents that can defeat the built-in AI in the StarCraft II full game.

Motivation & Objective

  • Advance AI for full-game StarCraft II by tackling large observation and action spaces.
  • Demonstrate that two distinct agents can beat cheating built-in AIs across levels 1–10 on AbyssalReef.
  • Show how macro-action and hierarchical-action designs integrate prior game knowledge into learning.
  • Provide reusable baselines and open-source code to enable hybrid learning and imitation trajectory generation.

Proposed method

  • TStarBot1 uses a flat, macro-action based action space with 165 predefined macro actions encoding TechTree rules and execution; a high-level RL controller learns over macro actions.
  • TStarBot2 employs a macro-micro hierarchical action space with modular, per-module controllers and expert rule-based lower tiers.
  • A PySC2 extension exposes per-unit controls and encodes a complete Zerg TechTree to support macro actions.
  • Observations comprise spatial feature maps and non-spatial scalars; rewards are a sparse ternary end-of-game signal.
  • Training uses Dueling-DDQN or PPO, with a distributed rollout infrastructure (1920 actors, ~3840 CPUs) to accelerate learning.

Experimental results

Research questions

  • RQ1Can macro-action based DRL and hierarchical macro-micro controllers defeat the StarCraft II built-in AIs across high cheating levels in full games?
  • RQ2How do macro-action abstraction and TechTree knowledge impact learning efficiency and performance compared to end-to-end control?
  • RQ3What is the training efficiency and scalability when using large-scale distributed rollouts for full-game SC2 agents?
  • RQ4What type of game knowledge (TechTree, hard rules) is essential to encode to bridge the gap to human-level play in full SC2?
  • RQ5How do the two agent designs compare in terms of performance and training complexity on AbyssalReef 1v1 Zerg-vs-Zerg?

Key findings

  • Both TStarBot1 and TStarBot2 defeat built-in AIs from level 1 to level 10 in a full game (1v1 Zerg-vs-Zerg on AbyssalReef).
  • Level 8, 9, and 10 are cheating AIs with advantages such as full map vision and resource boosts.
  • TStarBot1 can learn from scratch and defeat the strongest bots within 1–2 days of training on a single GPU.
  • The paper introduces 165 macro actions and a hierarchical action framework to manage the large action space and incorporate TechTree knowledge.
  • A PySC2 extension provides per-unit control and a formal TechTree, enabling more realistic unit-level and macro decision making.
  • Distributed rollout infrastructure (1920 actors) significantly speeds up training and enhances stability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.