tscmoo/pluto

StarCraft: Brood War AI — a neural network trained by self-play RL.

What it solves

Pluto provides a fully autonomous AI for StarCraft: Brood War that plays the game using a single neural network rather than traditional scripted logic. It handles both macro-management and micro-combat for all three races without relying on pre-programmed strategies.

How it works

The bot uses reinforcement learning trained through self-play. During a match, a 32-bit DLL module communicates with a 64-bit CPU-based inference engine via shared memory. The model takes a decision step every 6 game frames, aiming to complete its calculations within a 40ms window to ensure smooth gameplay. It tracks performance against specific opponents using a bandit-based system that records build-order statistics and win-probability trajectories.

Who it’s for

Pluto is designed for StarCraft: Brood War players and developers interested in neural-network-driven game AI. It is suitable for users running the game on Windows or Wine who have hardware capable of handling CPU-based inference (an x86-64 CPU with AVX2 support is required).

Highlights

  • Plays all three races (Zerg, Terran, Protoss) without scripted play.
  • Runs entirely on the CPU; no GPU required.
  • Includes a built-in resignation system based on its internal win-probability estimates.
  • Allows users to influence build-order choices by editing per-opponent statistics files.
  • Supports optional on-screen visualization of the model's win-probability graph.

Related

  • Project
  • Project
  • Project
  • Project