1.0.5 • Published 7 years ago
match-result-prediction v1.0.5
Match Result Prediction
A simple match prediction code based on the club coefficient.
Usage
Simply pass the params for teams:
var scores = matchResultPrediction({
homeTeamCoef: 0.91,
awayTeamCoef: 0.75,
drawMax: 3,
winMax: 5
});
Params
homeTeamCoef
- Home team coefficient.Float
in range from0
to1
awayTeamCoef
- Away team coefficient.Float
in range from0
to1
drawMax
- When randomly draw is selected, this will be maximum value of a draw scorewinMax
- When randomly win is selected, this will be maximum value of winning team
Installation
npm i match-result-prediction
License
MIT-Licensed.