2.0.0 • Published 6 months ago

match-result-prediction v2.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
6 months ago

Match Result Prediction 🎯

npm version TypeScript License: MIT

A sophisticated TypeScript library for predicting football match results based on team coefficients. Perfect for sports simulations, game development, or statistical analysis.

🚀 Features

  • Type-safe with full TypeScript support
  • Realistic score predictions based on team strength
  • Configurable draw and win conditions
  • Zero dependencies
  • Functional programming approach
  • Well-tested and maintained

📦 Installation

npm install match-result-prediction
# or
yarn add match-result-prediction
# or
pnpm add match-result-prediction

Usage

Simply pass the params for teams:

import { matchResultPrediction } from 'match-result-prediction';

const scores = matchResultPrediction({
  homeTeamCoef: 0.91,
  awayTeamCoef: 0.75,
  drawMax: 3,
  winMax: 5
});

Params

  • homeTeamCoef - Home team coefficient. Float in range from 0 to 1
  • awayTeamCoef - Away team coefficient. Float in range from 0 to 1
  • drawMax - When randomly draw is selected, this will be maximum value of a draw score
  • winMax - When randomly win is selected, this will be maximum value of winning team

License

MIT-Licensed.

2.0.0

6 months ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.0

8 years ago