1.1.5 • Published 7 months ago

football-score-predictor v1.1.5

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Football Score Predictor

Football Score Predictor Logo

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

Example Output 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

  1. Fork the repository
  2. Create your feature branch (`git checkout -b feature/fooBar`)
  3. Commit your changes (`git commit -m 'Add some fooBar'`)
  4. Push to the branch (`git push origin feature/fooBar`)
  5. Create a new Pull Request

License

This project is licensed under the MIT License.

Contact

Open an issue

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.0.2

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago