# TorchCraft/TorchCraft

Connecting Torch to StarCraft

Repository: https://github.com/TorchCraft/TorchCraft
Canonical: https://ross.abutalabs.com/products/torchcraft
Language: C++
License: NOASSERTION
License Family: other
Topics: starcraft, torchcraft, bwapi, torch, reinforcement-learning, deep-learning, machine-learning
Archived: true
Last push: 2021-08-30T19:19:38+00:00

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

## Adoption (not part of the score)
Stars 1398, forks 212 (observed 2026-08-28T04:04:36.834481+00:00)

## What it is
TorchCraft is a bridge library connecting the Torch machine learning framework to StarCraft: Brood War via a BWAPI module that streams game state over ZMQ. It enables machine learning and reinforcement learning research on real-time strategy games from C++, Python, or Lua clients.

## Use cases
- train reinforcement learning agents on StarCraft: Brood War
- parse StarCraft game state for machine learning research
- control StarCraft bots from Python or Lua
- run real-time strategy game experiments with BWAPI
- research deep learning on RTS games

## When to choose
- you need a programmatic interface to StarCraft: Brood War for RL research
- you want to use Torch/Lua or Python clients against a BWAPI game server
- you need OpenBW or WINE-based headless StarCraft setups for experiments

## When to avoid
- you want to work with StarCraft II instead of Brood War
- you use PyTorch rather than the legacy Torch7 framework
- you need an actively maintained project - development has largely stopped

## Facets
- artifact type: library
- maturity: maintenance
- function: reinforcement-learning, machine-learning, simulation, sdk
- domain: reinforcement-learning, machine-learning, artificial-intelligence
- platform: windows, cpp, python, lua
- tags: starcraft, bwapi, torch, zmq, real-time-strategy, game-ai, research, game-development, linux

## Member repositories
- TorchCraft/TorchCraft (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.834481+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-30T04:39:12.642104+00:00, confidence not recorded.
  - readme: https://github.com/TorchCraft/TorchCraft (fetched 2026-08-28T04:04:36.834481+00:00, sha 6dc46a86fd26)
- Data as of 2026-08-30T08:39:29.467469+00:00.
