Giter Site home page Giter Site logo

bga-tournament's Introduction

bgaGames.py

This runs for all the relevant games of the mentioned players and calculates the score. Team Poseidon starts with 1 additional point because of an uncalculated game in BGA.

bga.py

This saves the games, teams and players in a Postgres DB whose table model is present in bga_tables.py

Assumptions for calculating weighted score :

  1. All players are equally likely to win a game
  2. All games will have a result
  3. The distribution of scores of a game is even
  4. Normalizing score across final number of games a team has played is possible since each team participates in a decent number of games (a maximum difference of 30 at the moment I write this)

Weighted Score in a Game where team A has won = w(A,gi) = n(gi)/n(A), where gi = game i, n(g) = number of total players in the game, n(A) = number of players of Team A who played

Final Score for Team A = sum (gi) where i=games where team A has won

Weighted final score for Team A = sum(gi)/n(gA) where n(gA) = Total games played by Team A

The next step would be to find out distribution of scores possible in a game, chances of draw and multiply that factor to each game to normalize across different types of games as well (for example, what are the chances of having 2 winners instead of 1 in Hearts). In the above mentioned model, we assume there will always be exactly one winner

bga-tournament's People

Contributors

barun1313 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.