GithubHelp home page GithubHelp logo

dac's Introduction

DotA Auto Chess Composition Analyzer

This is a simple utility for checking the species and class bonus synergies for various team compositions.

Step 1: Define the team composition in a var/[filename].json file as an array:

[
  "Bat Rider",
  "Luna",
  "Chaos Knight",
  "Abaddon",
  "Dragon Knight",
  "Omni Knight",
  "Shadow Shaman",
  "Disruptor",
  "Dazzle"
]

Step 2: Execute the python script:

# syntax
python src/analyze.py [file]

# example
python src/analyze.py var/example.json | jq

{
  "comp": {
    "Bat Rider": "Troll Knight",
    "Luna": "Elf Knight",
    "Chaos Knight": "Demon Knight",
    "Abaddon": "Undead Knight",
    "Dragon Knight": "Human/Dragon Knight",
    "Omni Knight": "Human Knight",
    "Shadow Shaman": "Troll Shaman",
    "Disruptor": "Orc Shaman",
    "Dazzle": "Troll Priest"
  },
  "class_counts": {
    "Knight": 6,
    "Shaman": 2,
    "Priest": 1
  },
  "class_synergies": {
    "Knight": {
      "3": "All friendly knights have a 40% chance to trigger a damage-reduction shield when attacked.",
      "6": "All allies knights have a 40% chance to trigger a damage-reduction shield when attacked."
    },
    "Shaman": {
      "2": "Hex affects a random enemy when the battle starts."
    },
    "Priest": {
      "1": "20% less damage to the courier."
    }
  },
  "species_counts": {
    "Troll": 3,
    "Elf": 1,
    "Demon": 1,
    "Undead": 1,
    "Human": 2,
    "Dragon": 1,
    "Orc": 1
  },
  "species_synergies": {
    "Troll": {
      "2": "Attack speed increased by 35% for all friendly trolls."
    },
    "Demon": {
      "1": "Deals 50% extra pure damage to their target. (inactive if more than one king of demon)"
    },
    "Human": {
      "2": "All friendly humans have a 20% chance to silence the target for 4s when attacking."
    }
  }
}

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.