football-score-predictor
v1.1.5
Published
A score simulation between two teams
Downloads
3
Readme
Football Score Predictor
A Node.js typescript package to predict the score between two national football teams based on FIFA rankings and recent stats like wins/losses and goals scored/conceded.
Table of Contents
Installation
npm install football-score-predictor
or using yarn
yarn add football-score-predictor
Usage
import { predictScore } from "football-score-predictor";
Example
predictScore({
teamA: "France",
teamB: "Allemagne",
}).then((scorePrediction) => console.log(scorePrediction));
Screenshot
Output
The prediction will return an object with the following format:
{
"teamA": { "name": "France", "score": 3 },
"teamB": { "name": "Allemagne", "score": 1 }
}
Roadmap
- Improve score calculations with as many stats as possible
- Use english names for teams
- Handle teams with spaces and special characters in their names
- Include clubs in the predictions
Contributing
- Fork the repository
- Create your feature branch (`git checkout -b feature/fooBar`)
- Commit your changes (`git commit -m 'Add some fooBar'`)
- Push to the branch (`git push origin feature/fooBar`)
- Create a new Pull Request
License
This project is licensed under the MIT License.