# bwapi/bwapi

Brood War API

Repository: https://github.com/bwapi/bwapi
Canonical: https://ross.abutalabs.com/products/bwapi
Homepage: http://bwapi.github.io/
Language: C++
License: LGPL-3.0
License Family: copyleft
Topics: bwapi, starcraft, c-plus-plus, broodwar, ai, game, brood-war-api
Last push: 2026-06-10T23:57:04+00:00

## Health v2 (maintenance only)
Score: 62/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 86, release rhythm 8, longevity 100
- inputs: {"age_days": 4609, "days_push": 84, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1670, forks 286 (observed 2026-08-28T04:05:20.067893+00:00)

## What it is
BWAPI is a free and open source C++ framework for interacting with Starcraft: Broodwar, letting students, researchers, and hobbyists build AI agents that play the game. It exposes game state (with fog-of-war restrictions by default), unit control, and replay analysis, and injects AI modules via Chaoslauncher.

## Use cases
- write a bot that plays Starcraft: Broodwar
- build AI agents for an RTS game research project
- analyze Starcraft replays frame-by-frame to extract build orders
- run AI vs AI Starcraft tournaments with a referee module
- study real-time decision-making algorithms under partial observability
- train reinforcement learning agents in a commercial RTS environment

## When to choose
- you want to develop competitive Starcraft: Broodwar bots in C++ or Java
- you need a non-cheating AI interface that respects fog of war
- you are doing academic research on real-time strategy AI
- you want to run or participate in AI tournaments like SSCAI

## When to avoid
- you target modern games or other RTS titles
- you cannot use Starcraft: Broodwar patch 1.16.1 on Windows with Visual Studio
- you want a maintained engine for production game development rather than research
- you need cross-platform or Linux-native bot development without emulation

## Facets
- artifact type: framework
- maturity: maintenance
- function: game-engine, agent-framework, machine-learning, sdk
- domain: artificial-intelligence, gaming-tools, reinforcement-learning
- platform: windows, cpp, jvm
- tags: starcraft-broodwar, rts-ai, bot-development, game-ai-research, replay-analysis, tournament-module, game-development, ai-agents

## Member repositories
- bwapi/bwapi (main) score 62

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:20.067893+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:42:44.027482+00:00, confidence not recorded.
  - readme: https://github.com/bwapi/bwapi (fetched 2026-08-28T04:05:20.067893+00:00, sha 06dc71cc686a)
  - homepage: http://bwapi.github.io/ (fetched 2026-08-29T11:15:53.286923+00:00, sha 25a561e0c268)
- Data as of 2026-08-30T08:39:29.467469+00:00.
