Skip to content

Pbatch/ClashRoyaleBuildABot

Repository files navigation

Clash Royale Build-A-Bot

ClashRoyaleBuildABot

Build your own bot to play Clash Royale

All Contributors PyPI version

Description

Welcome to Clash Royale Build-A-Bot! This project provides an advanced state generator that accurately returns detailed information using cutting-edge technologies. 

Previews

Standard Bot

Standard Bot

Hog 2.6 Cycle Bot

Hog 2.6 Cycle Bot by OwenKruse

Getting Started

To get started with building your Clash Royale bot, follow these steps:

  1. Setup Your Environment
    • Follow our Setup Guide to prepare your environment and emulator.
  2. Try the Basic Bot Tutorial
  3. Understand State Generation
    • Dive deeper into how the state is generated in our State Guide.

Releases

Latest Updates

  • 1.2.0
    • Replaced the YOLOv5 unit model with a YOLOv8 unit model.
    • Included extra data from Jurek Elliesen for retraining.
  • 1.1.0
    • Switched to a larger YOLOv5 model.
    • Separated 'ally/enemy' prediction from unit detection, improving accuracy and efficiency.

Roadmap

Our future plans include:

  • Enhancing PeteBot's performance (e.g., placement and elixir management).
  • Labeling more images of diverse cards to support a wider variety of decks.
  • Adding a tracking layer to improve unit predictions over time.
  • Publishing tutorials on Q-learning and imitation learning.
  • Releasing the YOLOv5 training notebook.
  • Implementing chest opening and card upgrading features.
  • Creating a leaderboard for the best bots developed with this repository.

Have a great idea? Contribute and see it in action!

Data

Name Description Link
units.tar.gz Units in Yolov5 format https://drive.google.com/file/d/1TsJtJ5u0NP6wb7KOF5qAbBrMuVtn7eBr/view?usp=sharing
numbers.tar.gz Numbers (grayscale) in Yolov5 format https://drive.google.com/file/d/1nsKOIdvvBMr_HveioFjv67Ti9sJh8ECM/view?usp=sharing

Contributors ✨

A big thank you to these wonderful contributors! (emoji key)

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

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

🐛
HorridModz
HorridModz

📖
BjornGrylls
BjornGrylls

🧑‍🏫
Iiro Heinonen
Iiro Heinonen

🐛
Carlos Dubón
Carlos Dubón

🐛
Leviaria
Leviaria

💻 💡 📖

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