Skip to main content

A platform for creating bots to play Clash Royale

Project description

Clash Royale Build-A-Bot

All Contributors

PyPI version

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.

Releases

  • 1.1.0
    • Moved to bigger Yolov5 model.
    • Predict 'ally/enemy' separately from the unit (Doubles training data + fewer classes to predict).

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?

Community Creations

Hog2.6Cycle

Hog 2.6 Cycle Bot by OwenKruse

Contributors ✨

Thanks goes to these wonderful people (emoji key):

Link
Link

🔣
Emgimeer-Bazder
Emgimeer-Bazder

🐛
Gavrilovici Eduard
Gavrilovici Eduard

📖 💻
Nyantad
Nyantad

🐛
OwenKruse
OwenKruse

📖 🔣 💻 💡
Martin Miglio
Martin Miglio

💻 📖 ️️️️♿️ 💡 📓
Ankush Sethi
Ankush Sethi

🐛
adl212
adl212

🐛 🔣
Chi Huu Huynh
Chi Huu Huynh

💻
nathan lodge
nathan lodge

🐛
Vedant Jolly
Vedant Jolly

🐛

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ClashRoyaleBuildABot-1.2.0.tar.gz (45.3 MB view hashes)

Uploaded Source

Built Distribution

ClashRoyaleBuildABot-1.2.0-py3-none-any.whl (45.3 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page