Skip to content

A platform for creating bots to play Clash Royale

License

Notifications You must be signed in to change notification settings

wroboat/ClashRoyaleBuildABot

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Clash Royale Build-A-Bot

All Contributors

Build your own bot to play Clash Royale

demo

Description

We present an advanced state generator, which is accurate and returns a lot of information. It uses:

  • YOLOv5 to infer the units and numbers
  • Image hashes to detect the cards
  • A simple function of the pixels to deduce the elixir

detector

With a more powerful interpretation of the state, we can start to build bots that can make intelligent decisions.

Getting Started

  • Setup your environment and the emulator.

  • Try the basic bot building tutorial.

  • Learn how the state is generated.

Roadmap

  • Improve flaws of PeteBot (Placement, elixir management, etc.).
  • Label more images, of more diverse cards, so that more decks can be played.
  • Add a layer that operates on the object detection output to produce more reliable unit predictions. (I.e. Tracking units over time).
  • Add a basic Q-learning tutorial.
  • Add a basic imitation learning tutorial.
  • Publish the YOLOv5 training notebook.
  • Add the ability to open chests and upgrade cards.
  • Publish a leaderboard of the best bots made with the repo.
  • ... Your next big idea?

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Link

🔣

Emgimeer-Bazder

🐛

Gavrilovici Eduard

📖 💻

Nyantad

🐛

OwenKruse

📖

This project follows the all-contributors specification. Contributions of any kind welcome!

About

A platform for creating bots to play Clash Royale

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%