Giter Site home page Giter Site logo

leagueofdrafts's Introduction

LeagueOfDrafts

A game about drafting in League of Legends. The goal is to guess the winner of a match based on the draft.

Planning to use Riot API to select a random game.

how to run locally

frontend runs via vite from LeagueOfDraft/src

npm run dev

run api locally from api/

uvicorn main:app --reload

TODO

  • Get actual random matches from Riot API

  • Tailwind CSS

  • CSS GRID

  • Add user system

    • React Router
    • Add login
    • Add register
  • Add database

  • Persistent API key

  • Options for match selection

    • Select rank
    • Select region
    • Select patch
    • Select queue
  • Add more details to match (eg. bans, pickorder..)

    • sort by role
  • Add more stats to user

  • Add more stats to match (av)

    • [] avg rank of game

bonus ideas

[] - who got most kills [] - who got most deaths

Steps needed

  • 1: API key needed to use Riot API - atm daily updates are needed at https://developer.riotgames.com/
  • 2: Get "random" matches associated with given rank
  • 3: Know the winner of each match, but don't show that to user
  • 3b: Show more details of match (eg. bans, pickorder..)
  • 4: Determine if user guess is correct/wrong
  • 5: Show user stats about guesses
  • 6: Store user stats in database (user system + db needed for this step)

Plan

u/bongdong420 - reddit idea

The best way I see to collect matches is to get a list of summonerIDs from each tier/divison using league-v4 then getting their accountIDs using summoner-v4 then getting their match history using match-v4 then using games from their match history.

Riot API suggestion

Match Data The best way to collect a large set of matches is not straightforward. Typically you need code that does this:

Collect a few summoners by hand. Just your own summoner is likely enough, or you could use all challenger players. Get the account IDs of those summoners. Get their match history on the queue type you want (paginate as far as you want to go, or filter by patch). Success! You have a ton of match IDs, from there, you can fetch their timelines or parse the matches however you want. Alternatively, Canisback on the Discord currently hosts a list of matches IDs that you can use to pull summoners from the matches/{matchId} endpoints. These lists are provided for free to the community for use, and may go down or stop being updated at any time.

https://canisback.com/matchId/matchlist_eun1.json

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.