3.0.3 • Published 6 years ago

matchday v3.0.3

Weekly downloads
3
License
ISC
Repository
github
Last release
6 years ago

matchday Build Status Coverage Status

matchday is a Node.js module that calculates the approximate probabilities of potential team standings in football (soccer) leagues after a certain period of time.

Installation

You can install matchday from NPM with npm i -S matchday.

Usage

When running matchday, specify the league code, the number of days to look ahead, and, optionally, the amount of times to run the random sampler:

const matchday = require('matchday');

matchday('PREMIER', 7, 1000000).then(standings => {
    // do stuff
});

Currently supported leagues are:

LeagueCode
British Premier LeaguePREMIER
Campeonato Brasileiro Série ABRASILEIRAO

Output schema

The value of the Promise is a Map of team standings to probabilities. A team standing is an array of objects of the following form:

{
    "team": "Manchester City", // the name of the team
    "goalDiff": 79, // the goal difference
    "points": 100 // the amount of points that the team has
}

The team standings are keys of the Map, and so are in text form as JSON. The value of each standing key is its approximate probability, as calculated by the sampler.

Known issues

Note that this project is very new and probably quite buggy. There is a known issue where there is a socket hang up after processing a large number of samples.

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.0

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

0.3.0

6 years ago

0.2.3

6 years ago

0.2.2

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.0

6 years ago