TorchCraft

TorchCraft is a library that enables AI research on real-time strategy (RTS) games such as StarCraft: Brood War. It makes it easier to control RTS games from machine learning frameworks through a client / server architecture, and enables researchers to serialize whole game states.

Machine learning research for RTS games

TorchCraft is a Brood War API (BWAPI) module that sends StarCraft data out over a ZMQ connection, allowing researchers to parse StarCraft data and interact with BWAPI from C++, Python (PyTorch-friendly), and Lua (Torch-friendlfriendly).

Get Started

1

Install StarCraft: Brood War (you will need to get a license), enter the game, and create a character.