Giter Site home page Giter Site logo

tippspiel's Introduction

Tippspiel

a Sails application implementing a betting game for the German Bundesliga. Data for each season is retrieved from OpenligaDB.

Currently, still work in Progress

How to use

To start betting, a user needs to create an account. The account consists of a username, which needs to be unique, and a password. Careful! Currently, there is no option to reset a password so make sure to remember it.

To add a season for the Bundesliga, you need to add information in order to be able to retrieve information from the OpenligDB:

  • leagueSeason: The season you are betting in
  • leageShortcut: A unique shortcut which identifies the Bundesliga

For more information on the necessary data, please refer to OpenligaDB. In any case, the season creation page offers placeholders to get a notion of the required parameters. For example, to bet in 2017/2018 the following information is necessary:

  • seasonName: 2017/2018
  • leagueSeason: 2017
  • leagueShortcut: bl1

Betting rules

A bet for a match has to be placed before the match started (although the program offers the possibility to enter a bet afterwards, which if helpful if at the time of betting the site could not be contacted). The bet is compared to the actual result of the match. There are four categories of bet results which give different points for a bet:

  • Correct result: The exact number of goals scored by the home and the guest team

  • Difference: The correct difference of scored goals was bet but not the exact number. E.g. the bet was 1:0 and the actual result 2:1. This category applies only if the bet was in favor of the winning team. So a bet of 0:1 would have resulted in 0 points.

  • Tendency: The bet was in favor of the winning team but none of the first two categories apply.

  • Wrong bet: The bet was on one team but the team lost or the result was draw. Likewise a bet on a draw results in 0 points if one team won.

A bet on a draw is automatically in the category of Difference if the bet was not the exact result. The following table displays the points resulting from each category.

Category Points
Correct 5
Difference 3
Tendency 1
Wrong 0

Good luck and have fun playing!

tippspiel's People

Contributors

kuenni avatar

Watchers

 avatar  avatar

tippspiel's Issues

Crash on very first bet

On the very first bet sails crashes because the id of the bet is undefined (BetController, l. 32)

openligaDB requests may fail

The requests to the open Liga DB may fail when there are too many requests done to fast after each other. Need to limit the request frequency.

Timeline not properly updated

When adding bets and results are already available, the timeline is not properly updated. There are additional data points added für the same matchday.

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.