PHP Classes
elePHPant
Icontem

File: README.md

Recommend this page to a friend!
  Classes of Aleksey  >  PHP Football Simulation  >  README.md  >  Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP Football Simulation
Compute football teams attack and defense strength
Author: By
Last change:
Date: 1 month ago
Size: 841 bytes
 

Contents

Class file image Download

?# 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