Skip to main content

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!

Metadata

Release files for ClashRoyaleBuildABot 1.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ClashRoyaleBuildABot 1.2.0
File Size Uploaded
ClashRoyaleBuildABot-1.2.0.tar.gz 45.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for ClashRoyaleBuildABot 1.2.0
File Interpreter ABI Platform
ClashRoyaleBuildABot-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 90.7 MB

Release files / ClashRoyaleBuildABot-1.2.0.tar.gz

Download URL ClashRoyaleBuildABot-1.2.0.tar.gz
Size 45.3 MB
Tags Source
SHA-256 checksum
How to use checksums
63816779b49390138a1d1a0367d7d7e3b0a86e943c4822c329e42538b46836cc
BLAKE2b-256 checksum
How to use checksums
333632df119a66eabf07f216cd2e613d8105502628ae8feb98a831bcde67c4ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / ClashRoyaleBuildABot-1.2.0-py3-none-any.whl

Download URL ClashRoyaleBuildABot-1.2.0-py3-none-any.whl
Size 45.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
fab7c86fe9b495addf4992ec4142062985d2ffa85e97c9690bf63e3b936e1086
BLAKE2b-256 checksum
How to use checksums
6d7ea2df69bb018aada6b810152d8f88f4c34e7a1d70e79dcd2c623fc31b1ee1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.1.2

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page