Giter Club home page Giter Club logo

dota-counter's Introduction

Dota Counter

Figure out the best counter heros for a dota match.

The proyect is simple. It scrapes dotabuff.com to get hero match data. It includes a pre-built map of hero match data but it can be re-fetched from dotabuff.com.

How to use

$ cd lib
$ ruby counter.rb

Then just follow the instructions.

How to re-fetch data from dotabuff.com

$ cd lib
$ ruby counter.rb --reset

Sample program output

Step 1. Initialize

$ cd lib
$ ruby counter.rb

Step 2. Prompt screen

Loading hero matchup information from local data file
Introduce the hero names you want to counter separated by a space

Step 3. User input

sven ursa

Step 4. Results

Slardar score: -0.49
Omniknight score: -0.58
Crystal Maiden score: -0.5800000000000001
Wraith King score: -0.67
Tiny score: -0.83
Windranger score: -0.92
Ogre Magi score: -1.1
Witch Doctor score: -1.17
Lina score: -1.21
Viper score: -1.33
Dragon Knight score: -1.64
Mirana score: -1.6400000000000001
Medusa score: -1.7700000000000002
Riki score: -1.85
Phantom Assassin score: -2.1399999999999997
Death Prophet score: -2.43
Phantom Lancer score: -2.51
Razor score: -2.71
Silencer score: -2.7199999999999998
Zeus score: -3.38

HAPPY COUNTERING

Geek Data

The scores are the sum of winrate of those heros against the heros you gave as input.

dota-counter's People

Contributors

marcel-valdez avatar

Watchers

 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.