Pbatch / ClashRoyaleBuildABot

A platform for creating bots to play Clash Royale

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • YOLO to infer the units (v8) and numbers (v5)
  • 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.2.0
    • Replaced the Yolov5 unit model with a Yolov8 unit model.
    • Retrained including extra data from Jurek Elliesen.
  • 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

πŸ›
HorridModz
HorridModz

πŸ“–
BjornGrylls
BjornGrylls

πŸ§‘β€πŸ«
Iiro Heinonen
Iiro Heinonen

πŸ›
Carlos DubΓ³n
Carlos DubΓ³n

πŸ›

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

About

A platform for creating bots to play Clash Royale

License:MIT License


Languages

Language:Python 100.0%