GithubHelp home page GithubHelp logo

leekwars-autoplay's Introduction

leekwars-autoplay

What does it do?

This is but a little greasemonkey script that adds a nice "Autoplay" button on http://leekwars.com/garden. When pressed, this little button triggers a cascading mess that tries to do the best possible matchmaking in order for you to spend all your daily points in a clever manner.

All output is printed to the debug console.

Team points

In its current state, the script supposes you only have one compo with all your leeks in it. It'll match it against the team with the highest total level (granting lots of XP whether you win or lose if your compo is small) as long as you have team fight points.

Farmer points

The script will match you against the farmer with the highest total level as long as you have team fight points.

Solo points

For each enemy of each of your leeks, the script will trigger two challenges. Only the leeks you've beaten in both challenges will get the honor of being attacked in real combat. The script stops attacking any leek that manages to win a match. This ensures that you win as many fights as possible.

So what?

This is a work in progress. That is the first real javascript script that I've ever written, so I know it is full of code smells. Any remark will therefore be appreciated and considered a chance to improve!

The script could be improved to handle several compos. Its ugly internal queuing system could be cleaned. The button could be CSSified. The output log could be shown to the user.

leekwars-autoplay's People

Contributors

nicuveo avatar

Watchers

Yohann MONNIER avatar James Cloos avatar

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.