Skip to content

RoyaleGym

Train Clash Royale bots with reinforcement learning, on your own computer.

Start Here

The five packages

You install one, royalegym[all], and it brings the other four along.

See It Play

A whole battle between two random bots, shown in the viewer

A whole battle between two bots that play at random, in RoyaleViser. A bot that learns from nothing starts out like this.

Your bot learns on your own computer, in two ways. It can copy people, from thousands of real games: that's the way to a bot that plays like a person. And it can play practice battles, thousands of them, and learn by trial and error from what you reward. You don't need the game, a phone or an account, and you don't need to know machine learning: if you can copy a file and change a line of Python, you can make a bot.

Get started Train your first bot

Join in

RoyaleGym is a fan project. It is not affiliated with, endorsed or sponsored by Supercell.