Start Here¶
Getting Started
What RoyaleGym is, what you need, and where to begin.
Quick Start
Train your first Clash Royale bot with one file, then watch it play.
Cloning a Bot
Start your bot from real players' games, so it plays like them. Do this before training for long.
Configuration Objects
Change what your bot sees, the moves it can make, and what it's rewarded for.
Cheatsheets
Card names, game values, and reinforcement learning terms in plain words.
It Doesn't Work
Error messages and problems, and how to fix each one.
The five packages
You install one, royalegym[all], and it brings the other four along.
RoyaleGym
The battles your bot learns in.
RoyaleSim
The battle engine: elixir, cards, towers.
RoyaleLearn
The trainer that teaches your bot.
RoyaleViser
The viewer: watch training live, or a battle you saved.
RoyaleImitate
Clone human players or a bot, so yours starts out playing like them.
See It Play¶
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
Discord
Ask anything, show your bot, see what others are building. Beginner questions welcome.
Ko-fi
RoyaleGym is free. If it's useful to you, you can buy the project a coffee.
GitHub
The code for all five packages. Issues and pull requests are open.
RoyaleGym is a fan project. It is not affiliated with, endorsed or sponsored by Supercell.