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.
npm install football-score-predictor
or using yarn
yarn add football-score-predictor
import { predictScore } from "football-score-predictor";
predictScore({
teamA: "France",
teamB: "Allemagne",
}).then((scorePrediction) => console.log(scorePrediction));
The prediction will return an object with the following format:
{
"teamA": { "name": "France", "score": 3 },
"teamB": { "name": "Allemagne", "score": 1 }
}
- 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
- 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
This project is licensed under the MIT License.