Skip to content

file3/rendesweb_test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2020 UEFA European Football Championship Simulation (https://en.wikipedia.org/wiki/UEFA_Euro_2020)

Sunday Date Finder

System Requirement

Server running PHP 5.0 or higher, optional: composer command installed

Installation

Under working directory

$ git clone https://github.com/file3/rendesweb_test.git

Or

$ tar xzf rendesweb_test.tgz

Or

$ unzip rendesweb_test.zip

$ cd rendesweb_test

The directory www is intended to be under web-space because all modules can either run in web-browser or in console

Modify e.g. constant DEBUG in file www/config.php if printing more information is needed

$ composer update # optional

Running

$ cd www

$ php fermat.php -l 1000 # LIMIT

$ php soccer.php -f ../soccer.csv # SAVE_FILE

$ php sunday.php -d 2019-1-10 # START_DATE

Or if intended to run in web-browser

$ wget -O - -q -t 1 http[s]://[www.]server[.hu|.com|...]/[dir/]fermat.php?limit=1000 # LIMIT

$ wget -O - -q -t 1 http[s]://[www.]server[.hu|.com|...]/[dir/]soccer.php?save_file=writable/soccer.csv # SAVE_FILE - directory where the save file points to must be writable for the web-server

$ wget -O - -q -t 1 http[s]://[www.]server[.hu|.com|...]/[dir/]sunday.php?start_date=2019-1-10 # START_DATE

Running in console, all modules have -h option in order to get help for running

Testing

$ cd ..

$ vendor/bin/phpunit tests/FermatTest # currently not implemented

$ vendor/bin/phpunit tests/SoccerTest # currently not implemented

$ vendor/bin/phpunit tests/SundayTest # currently not implemented

Demo URL

https://webmail.humankraft.hu/~fattila/rendesweb_test/fermat.php?limit=1000

https://webmail.humankraft.hu/~fattila/rendesweb_test/soccer.php?save_file=writable/soccer.csv

https://webmail.humankraft.hu/~fattila/rendesweb_test/sunday.php?start_date=2019-1-10

TODO and future consideration

Speed-up Fermat Equation module: currently it is suggested to run only up to limit 5000 to be done within normal time interval

Improve penalty handling of Soccer Championship Simulation: currently penalty results are not saved but the outcome is generated by random number generator

Also in Soccer Championship Simulation, improve tiebreakers handling: currently in Group stage / Tiebreakers rules 8. and 9. and the third-placed teams tiebreakers rules 5. are not implemented rather replaced by random number generation, source: https://en.wikipedia.org/wiki/UEFA_Euro_2020#Tiebreakers and https://en.wikipedia.org/wiki/UEFA_Euro_2020#Ranking_of_third-placed_teams

Also in Soccer Championship Simulation, parse and download inital data like rankings, groups directly from WIKI pages

Generate fancier output i.e. front-end and debug information

Add more error handling

Use spl_autoload_register() to load main class

Add unit test cases

Reduce accessing variables via $GLOBALS["VARIABLE_NAME"]

Isolate some program files not residing under web-space

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published