Artificial Generals Intelligence: Mastering Generals.io with Reinforcement Learning

Matej Straka, Martin Schmid
7/9/2025
cs.LGcs.AI

Official code: strakam/generals-bots (111 stars, last commit 2026-04-10).

Abstract

We introduce a real-time strategy game environment based on Generals.io, a game with thousands of weekly active players. Our environment is fully compatible with Gymnasium and PettingZoo and is capable of running thousands of frames per second on commodity hardware. We also present a reference agent, trained with supervised pre-training and self-play, which reached the top 0.003% of the 1v1 human leaderboard after only 36 hours on a single H100 GPU. To accelerate learning, we incorporate potential-based reward shaping and memory features. Our contributions of a modular RTS benchmark and a competitive baseline agent provide an accessible yet challenging platform for advancing multi-agent reinforcement learning research. The documented code, together with examples and tutorials, is available at https://github.com/strakam/generals-bots.

View on arXivView PDF

Code Implementations(1)

Develop your agent for generals.io!

11128Python, MakefileJun 5, 20246 months agoNOASSERTION
bottinggymgym-environmentgymnasiummachine-learning+6 more

Similar Papers

Cite this paper

@article{straka2025artificial,
  title  = {Artificial Generals Intelligence: Mastering Generals.io with Reinforcement Learning},
  author = {Matej Straka and Martin Schmid},
  year   = {2025},
  eprint = {2507.06825},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.06825v2}
}

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/2507.06825.svg)](https://codeofpaper.com/paper/2507.06825)

Discussion