A Football League table representation, feed it results and let it calculate how the league goes.
Inside your virtualenv (or python main if you dare)
- pip install git+https://github.com/dochead/LeagueTable
- virtualenv ~/.vp/leaguetable
- source ~/.vp/leaguetable/bin/activate
(in the directory of your choice)
- git clone https://github.com/dochead/LeagueTable.git
- pip install LeagueTable/
- run_league
Sample:
Enter match results (leave blank or hit CTRL-D when done)
: 传统算法通过 2, Liddlypool 1
: અંગ્રેજી 1, Liddlypool 1
: 传统算法通过 3, અંગ્રેજી 0
:
League Table:
1. 传统算法通过, 6pts
2. Liddlypool, 1pts
2. અંગ્રેજી, 1pts
- run_league --filename LeagueTable/samples/results.txt
- run_league --filename LeagueTable/samples/results.txt --log_config LeagueTable/samples/logging.json
- cd LeagueTable/tests
- python -m unittest discover .
BSD