Gym-μRTS: Toward Affordable Full Game Real-time Strategy Games Research with Deep Reinforcement Learning

Shengyi Huang, Santiago Ontañón, Chris Bamford, Lukasz Grela
5/21/2021
47 citations
cs.LG
rl

Official code: vwxyzjn/gym-microrts-paper (45 stars, Python, last commit 2022-08-05). Most starred: Farama-Foundation/MicroRTS-Py, a community implementation (295 stars, Python, MIT, last commit 2025-08-11, 6.6× the official stars). 1 more implementation below.

Abstract

In recent years, researchers have achieved great success in applying Deep Reinforcement Learning (DRL) algorithms to Real-time Strategy (RTS) games, creating strong autonomous agents that could defeat professional players in StarCraft~II. However, existing approaches to tackle full games have high computational costs, usually requiring the use of thousands of GPUs and CPUs for weeks.

Show full abstract

This paper has two main contributions to address this issue: 1) We introduce Gym-$μ$RTS (pronounced "gym-micro-RTS") as a fast-to-run RL environment for full-game RTS research and 2) we present a collection of techniques to scale DRL to play full-game $μ$RTS as well as ablation studies to demonstrate their empirical importance. Our best-trained bot can defeat every $μ$RTS bot we tested from the past $μ$RTS competitions when working in a single-map setting, resulting in a state-of-the-art DRL agent while only taking about 60 hours of training using a single machine (one GPU, three vCPU, 16GB RAM). See the blog post at https://wandb.ai/vwxyzjn/gym-microrts-paper/reports/Gym-RTS-Toward-Affordable-Deep-Reinforcement-Learning-Research-in-Real-Time-Strategy-Games--Vmlldzo2MDIzMTg and the source code at https://github.com/vwxyzjn/gym-microrts-paper

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
vwxyzjn/gym-microrts-paperOfficial45Python–2022-08-05
Farama-Foundation/MicroRTS-PyCommunity295PythonMIT2025-08-11

The source code for the gym-microrts paper.

454Python, ShellApr 12, 20214 years ago
MIT

A simple and highly efficient RTS-game-inspired environment for reinforcement learning (formerly Gym-MicroRTS)

29565Python, ShellApr 3, 20191 years agoMIT

Similar Papers

Cite this paper

@article{huang2021gymrts,
  title  = {Gym-μRTS: Toward Affordable Full Game Real-time Strategy Games Research with Deep Reinforcement Learning},
  author = {Shengyi Huang and Santiago Ontañón and Chris Bamford and Lukasz Grela},
  year   = {2021},
  eprint = {2105.13807},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.13807}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2105.13807.svg)](https://codeofpaper.com/paper/2105.13807)

Discussion