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. Yours starts out like this, and learns.

Your bot plays practice battles against an opponent, thousands of them, on your own computer. You decide what it gets rewarded for, and it works out the rest by trial and error. 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 train 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.