StarCraft bots interact with a game through an API or framework: the interface supplies game information and a way to issue actions, while the bot’s own code decides what to do. Those decisions may come from hand-written rules, machine learning, or a mix of both. StarCraft II and Brood War use distinct interfaces, so the right starting point depends on which game you want to work with.
What connects a bot to StarCraft?
A bot is the decision-making program; an API is the channel between that program and the game. It lets the bot receive observations and send actions. Blizzard describes the StarCraft II API as an interface providing “full external control of StarCraft II” and identifies scripted bots, machine-learning bots, replay analysis, and tool-assisted human play among its uses. Blizzard’s s2client-proto project includes protocol definitions and points developers to documentation, a reference C++ implementation, Linux packages, maps, replays, and community tools.
| # | Preview | Product | Price | |
|---|---|---|---|---|
| 1 |
|
StarCraft II: Wings of Liberty | $13.51 | Buy on Amazon |
| 2 |
|
Starcraft Gold - Includes Expansion Pack (PC CD) | $29.99 | Buy on Amazon |
| 3 |
|
Starcraft II: Legacy of the Void - Standard Edition | $38.95 | Buy on Amazon |
| 4 |
|
StarCraft: Brood War Expansion (Boxed) | $3.59 | Buy on Amazon |
For StarCraft: Brood War, BWAPI is a separate community framework. Its project describes it as a free, open-source C++ framework for interacting with Brood War and creating AI agents. It is not the official StarCraft II API, and the two interfaces should not be assumed to offer identical capabilities.
How the interface, bot code, and strategy fit together
1. The API or framework handles communication
The interface connects a program to the game, exposes observations, and provides mechanisms for actions. In Blizzard’s documentation, an Agent is the bot that can perform game actions. The API provides the channel; it does not, by itself, supply a winning strategy.
#1 Best Overall
- Fast-paced, hard-hitting, tightly balanced competitive real-time strategy gameplay that recaptures and improves on the original game
- Three completely distinct races: Protoss, Terran, and Zerg
- Units and gameplay mechanics distinguish each race
- 3D-graphics engine with support for visual effects and massive unit and army sizes
- Full multiplayer support, with competitive features and matchmaking utilities available through Battle.net
2. The bot implementation operates the connection
The implementation connects to and operates the game using the relevant interface. Blizzard’s getting-started documentation focuses on building a StarCraft II bot and includes examples of API features. The setup and compatibility details a developer needs depend on the game, client build, API version, platform, and toolchain.
3. Decision logic chooses actions
The bot’s decision logic determines how to use observations and what actions to send. It might use authored conditions and routines, a learned policy, or both. Blizzard explicitly describes both scripted and learning-based AI as intended uses of the SC2 API; “AI” here does not mean machine learning exclusively.
Rank #2
- Build new units
- construct Lurkers, Medics, Valkyries, Corsairs, Dark Archons and more
- Explore new worlds
- storm frozen wastes, scour arid deserts and navigate the twilight worlds of the Dark Templar
- Command new missions
Nor does “scripted” necessarily mean a bot blindly follows one fixed build order. Rules can respond to observations and choose among alternatives. How sophisticated or adaptive a particular bot is depends on its implementation, not simply on whether it is called scripted.
StarCraft II API and Brood War BWAPI compared
| Dimension | StarCraft II API | Brood War BWAPI |
|---|---|---|
| Game | StarCraft II | StarCraft: Brood War |
| Provenance | Blizzard’s official protocol and API ecosystem | Community open-source framework |
| Stated purpose | External control, scripted and machine-learning bots, replay analysis, and tool-assisted human play | Interacting with Brood War and developing AI agents |
| What to check before coding | Current client/build support, API version, platform, and setup instructions; see Blizzard’s project documentation | Current game-version compatibility, compiler and runtime requirements, and framework version; see the BWAPI project |
This is a high-level comparison, not a feature-by-feature compatibility chart. The projects establish different purposes and provenance; they do not establish a complete capability-parity matrix or guarantee current compatibility for every setup.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Rank #3
- This is a standalone product. It does not require any other version of StarCraft II to play
- Internet Connection Required
- Battle.net registration and Battle.net Desktop Application required
How human-made strategies become bot behavior
A human strategic idea can be translated into decision rules, priorities, and routines that use the interface to act in the game. One published implementation of UAlbertaBot added a drop-based sneak attack and path-finding while retaining existing bot logic for scouting and other mechanics. That example shows one way to integrate a strategy; it does not mean every bot uses a modular architecture.
Human play can also contribute through replays. The DeepMind and Blizzard research paper discusses the StarCraft II raw API in relation to BWAPI and describes human-expert replay data in its research environment. Replays can support analysis or learning, but replay data is not itself a strategy, nor does using it guarantee human-like decisions.
Live control and replay analysis are different jobs
A bot playing a live game uses an interface to observe the game and issue actions. Replay analysis instead examines recorded play; it belongs to the wider API and research ecosystem but is not the same as controlling a live match. Human-game data may inform analysis or learning, while the bot still needs decision logic and an action mechanism to play.
Quick Recap
Choosing where to start
- For StarCraft II: start with Blizzard’s s2client-proto materials, then check the instructions and support for your game build, API version, and platform.
- For Brood War: investigate BWAPI and verify that its version and development requirements match your game setup.
- For strategy design: decide which observations should trigger which choices, and whether authored rules, learned behavior, or a hybrid best fits the goal.
- For replay work: treat recorded-game analysis as a separate task from live game control, even when both are part of a bot project.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
Quick wins for a faster PC:
Scan for outdated or missing drivers - takes under a minuteDriver Scan →Clear out junk files and repair common Windows errorsFree Scan →Fix the driver behind crashes, sound loss and screen glitchesFind Drivers →




