Skip to content

Configuration Objects

A battle in RoyaleGym is built from a few parts, and each one is an object you can swap. You set them up in build_env in your quickstart.py. Change one, train again, and see what your bot does differently.

  • State Mutators


    How each battle starts: the decks, evolutions and heroes, or a start partway through.

  • Observation Builders


    What the bot sees after every step: the arena, its hand, the elixir and the clock.

  • Action Parsers


    The moves the bot can make, which card where, and which ones are legal right now.

  • Reward Functions


    What the bot is paid for. The bot learns whatever makes this number big.

  • Done Conditions


    When a battle ends, and the difference between ending and being cut short.

  • Opponents


    Who sits in the other seat: a scripted bot, a bot you wrote, or your own bot.

  • Viewer


    Watch a battle live while it trains, or open a saved one later.

The How It Fits Together page shows how they meet in one step.