Coder Social home page Coder Social logo

clashai's Introduction

Clash AI

This is intended as both a serious project in AI, Python, Image Manipulation and machine learning as well as a simple Clash Royale bot to gather trophies during clan chest weekends.

WARNING

I cannot be held responsible if you get banned using this. It is against the rule. However, the AI is intended to play like a human and does not cheat in any way.

Prerequisites

Checkout my other project python_env. python_env has notepad++ as the IDE and an installation of python 3.0 with all the required libraries.

You will also need an emulator for Clash Royale on PC. I use BlueStack in 1296x729 (recommended settings) Any other emulator or resolution and you will need to redo the configurations in the file clashAI.py

The AI assume you have the following deck :

  • Giant
  • Balloon
  • Archer
  • Minion
  • Minion Horde
  • Squeleton Army
  • Fireball
  • Zap

Installing

No installation required once you have bluestack, python_env and ClashAI checkout somewhere on your disk.

Run

  • Open clashAI.py with notepadd++ from python_env/npp.
  • Start BlueStack
  • Install/Run Clash Royale on BlueStack
  • Make sure your game is on the "Start Battle" screen
  • Hit F5 in notepad++
  • Don't touch the mouse while the AI is playing
  • To kill the AI, select the log window in Notepad++ and hit Ctrl-C

License

Use at your own risk. Give attribution if you can. Do whatever you want with the code. No guarantees.

Note

If some files are missing it is because they do not belong to me and I will not make them available, you will need to find them yourself.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.