Download .zip |
Info | Example | View files (14) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-10-28 (3 months ago) | Not yet rated by the users | Total: 103 This week: 4 | All time: 8,831 This week: 151 |
Version | License | PHP version | Categories | |||
php-football-simulat 1.0 | MIT/X Consortium ... | 5 | Algorithms, PHP 5, Games |
Description | Author | |
This package can compute football teams attack and defense strength. Innovation Award
|
?# Football simulation
This is a simple simulator of football matches on PHP.
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.
The MIT License (MIT)
Copyright © 2017, @meet-aleksey
Files |
File | Role | Description |
---|---|---|
api.php | Example | Example script |
client.js | Data | Auxiliary data |
data.csv | Data | Auxiliary data |
FootballSimulation.phpproj | Data | Auxiliary data |
FootballSimulation.sln | Data | Auxiliary data |
index.php | Aux. | Auxiliary script |
LICENSE | Lic. | License text |
match.php | Class | Class source |
preview.gif | Output | Output results |
README.md | Doc. | Documentation |
README.ru.md | Doc. | Documentation |
stage.php | Class | Class source |
styles.css | Data | Auxiliary data |
team.php | Class | Class source |
php-football-simulat-2017-10-28.zip 508KB | |
php-football-simulat-2017-10-28.tar.gz 505KB | |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.