STATE OF AI.

See what AI can do now.

Agents

A desktop-trained player learns to run a Warcraft III base and army

Robin Kahlow reports about 89% wins against the game’s hardest built-in opponent on one map. The learned player’s successful early attacks still leave gaps in longer matches.

Overhead orange-and-black illustration of workers carrying gold and logs to a small settlement, while a dense column of shield-bearing infantry leaves its barracks and approaches a distant fortified gate.
AI-generated editorial illustration by State of AI of a working base supplying an early infantry attack, reflecting WarcraftSim’s reported rush-based strategy. The settlement, troops and terrain are conceptual. · AI-generated editorial illustration by State of AI

What happened

Robin Kahlow reports training a computer player that can build a base, assemble troops and defeat Warcraft III’s hardest built-in opponent. His WarcraftSim experiment recorded 451 wins in 508 evaluation games in a late training window on October 17, about 89%. The setting was the legacy 1.29 version of the game on one map, Echo Isles, against the scripted opponent called insane. That percentage describes an evaluation window during continued training, rather than a separate test of one fixed model. In his October 18 account, Kahlow says the opponent retained its advantage of double gold and lumber income. Training ran on a desktop with an RTX 3090 graphics card and a Ryzen 9 5950X processor, while a separate laptop also ran evaluation games.[1][2][3][4][10]

Why it’s interesting

Winning involves coordinating an economy with a battle. Workers collect gold and lumber to pay for buildings, troops and upgrades, so a player must keep production going while fighting. Some enemy activity is hidden, and choices made early can affect the outcome much later; learning which orders helped is part of the challenge. The documented training began with examples of orders from the game’s built-in players, then used rewards from repeated matches against itself, earlier versions and the built-in opponent. Kahlow designed the training stages and rewards, moving from simplified games toward normal rules. Later training also encouraged some players to follow building sequences drawn from built-in games and human replays, although evaluation games received no such targets. The log leaves open how much that addition helped compared with continued training. Custom software connects the learned player to the actual game engine. It receives numerical game information and sends unit orders, rather than operating a mouse and reading the screen. Its view hides enemies outside sight, while the interface helps find legal building locations and the game engine supplies movement and combat.[2][5][6][7][8][9][11][12][13]

Keep in perspective

Kahlow describes a player that relies heavily on early attacks with inexpensive troops and struggles when matches last longer. It underuses powerful hero units and more advanced technology, so frequent wins against this scripted opponent do not establish flexible strategy across maps or success against strong human players. Learned strategy-game success has a substantial history: DeepMind reported AlphaStar reaching Grandmaster level in StarCraft II in 2019. WarcraftSim’s interest lies in this documented desktop training project and the combination of learned decisions with human engineering. The different games and test conditions do not support a direct performance comparison.[1][4][13]

Sources

  1. Beating Warcraft III’s insane AI with self-play reinforcement learning on one desktopRobin Kahlow / Warlock.AI · Primary source
  2. WarcraftSim experiment logRobin Kahlow / GitHub · Primary source
  3. WarcraftSim repository overviewRobin Kahlow / GitHub · Primary source
  4. WarcraftSim experimentsRobin Kahlow / GitHub · Primary source
  5. WarcraftSim environmentsRobin Kahlow / GitHub · Primary source
  6. WarcraftSim whole-game modelRobin Kahlow / GitHub · Primary source
  7. WarcraftSim architectureRobin Kahlow / GitHub · Primary source
  8. WarcraftSim usage and referenceRobin Kahlow / GitHub · Primary source
  9. WarcraftSim human replay processingRobin Kahlow / GitHub · Primary source
  10. Robin Kahlow: latest postRobin Kahlow / Warlock.AI · Primary source
  11. Warcraft III basics: resourcesBlizzard Entertainment · Primary source
  12. Warcraft III basics: economyBlizzard Entertainment · Primary source
  13. AlphaStar: Grandmaster level in StarCraft II using multi-agent reinforcement learningGoogle DeepMind / AlphaStar team · Primary source
Back to all stories