Coder Social home page Coder Social logo

draft_lol's Introduction

Draft League of Legend

This client tool made with php and node, was created to let you quickly see what counter you should pick in a draft of league of legend.

Setup :

First start by clonning the repository :

git clone https://github.com/Nakatox/draft_lol.git

cd draft_lol

and in the “script” folder :

cd ..

cd script

composer dump-autoload

Client :

Once all installed, stay in the script folder and try the “help” command :

./cli.php command

All available command :

./cli.php draft 

./cli.php simple-counter

./cli.php all-counter

Foncionnality :

  • The first one, “draft”, will ask you step by step to specify all enemies champions.

After that, all the counter for each role will be displayed on your terminal with items suggested by champions.

  • The “simple counter” command will ask you a specified champion and a lane.

After that, all posssible counter for one champion will be displayed with items suggested.

  • The “all counter” command is pretty much the same but you just need to enter a champion, not a lane.

After that, all lane will be displayed with counters from each lane, and items suggested too.

Back-end :

Scrapping :

We use scrapping tool to automaticly update the suggested items for each champions with the current meta.

The scrapping tool will run every day at 00:00 AM, powered with github action.

To do it manually :

Start by installing the dependencies :

cd scrapping

yarn 

Then you need to run the following command :

npm run start

And then wait for the information to be updated in “/scrapping/champion.json”

Unit test :

To check if everything working properlly, you can always execute some test with the following command

(on the default folder)

php unitTest.php

If the fucntion return “True” for each case, then everything is working.

draft_lol's People

Contributors

fabian222222 avatar kohorizon avatar nakatox avatar ulysseassoo avatar

Watchers

 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.