Skip to content

Calculating attack strength and defense of teams. Determining games results using Poisson Distribution.

License

Notifications You must be signed in to change notification settings

meet-aleksey/php-football-simulation

Repository files navigation

Football simulation

This is a simple simulator of football matches on PHP.

Input data

At the input, a CSV file with the following structure is expected:

Country;Total games;Wins;Draws;Losses;Scored and missed goals
Brazil;104;70;17;17;221 - 102
Germany;106;66;20;20;224 - 121
Italy;83;45;21;17;128 - 77
Argentina;77;42;14;21;131 - 84

Columns delimiter - ;.

Total columns - 6.

The 2-5 columns must contain integer values.

The last column expects two numeric values separated by a hyphen.

First line - is header.

After the first line a list of football teams is expected. The number of teams must be divisible by two.

Preview

Requirements

  • PHP 5.x/7.x

License

The MIT License (MIT)

Copyright © 2017, @meet-aleksey

About

Calculating attack strength and defense of teams. Determining games results using Poisson Distribution.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published