Giter VIP home page Giter VIP logo

ms-esports's People

Contributors

matheusrmeloo avatar paulohrodrigues avatar ruiub3i avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

ms-esports's Issues

Get Specific Match and Stats

  • List an Specific Match:
    /api/get/match/specific/layout
    required:
    user_id
    app_id
    match_id

  • Show an Specific Team Stats:
    /api/get/videogame/team/layout
    required:
    user_id
    app_id
    team_id
    slug

  • Show an Specific Player Stats:
    /api/get/videogame/player/layout
    required:
    user_id
    app_id
    player_id
    slug

Create infrastrcuture so that when an event change happens to roll all the db info to change bets

  • Should be triggered by any change on the game (for now only do end of game)

  • Should crawl all bets of the db (only the ones that are in pending state and depend on this game_id and bet_type_id) and :

  • If Simple

  • Verify if user won the bet

  • Determine the winAmount (betAmount-houseEdge * odd) or 0 if lost (100% equal to casino)

  • Change the DB bet info for "state" to "finished" and outcome to "won" or "lost"

  • Add all the other relevant fields like winAmount, outcomeResult (ex : "2" or "X"), etc..

  • Change the balance for app/user (copy as the casino structure)

  • If Multiple

  • Verify if user won the bet

  • Determine if this was the last game dependent on result (not "finished")
    If no

  • To change the sub-bet (betResult) place of the array to the result and new state "finished"
    If yes

  • To change the sub-bet (betResult) place of the array to the result and new state "finished"

  • Determine the winAmount (betAmount-houseEdge * odd) or 0 if lost (100% equal to casino)

  • Change the DB bet info for "state" to "finished" and outcome to "won" or "lost"

  • Add all the other relevant fields like winAmount, outcomeResult (ex : "2" or "X"), etc..

  • Change the balance for app/user (copy as the casino structure)

Note :

  • If multiple is lost still continue to update the sub.bets with the results

Get All booked matches and per Serie for Layout-1

  • List All Booked Matches:
    /api/get/matches/all/layout
    required:
    user_id
    app_id

  • List Booked Matches Per Serie:
    /api/get/matches/series/layout
    required:
    user_id
    app_id
    serie_id: { Type: Array of Series (Number) }

Simple bets should be on one unique request

Dont have any parameter to send to backend to inform if a bet is single or multiple, the backend knows the difference if a bets are single or multiple, when there is an unique bet is single, when there are more than one bet, it's a multiple bet.

The problem is when the user choose many options (n) to bet as single be, is necessary to make many requests (n) to API.

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.