Luck computation for Learned League (per SheahanJ's algorithm)
This is an implementation of SheahanJ's algorithm for computing "luck" in the LearnedLeague, as described by his post in the LearnedLeague Forum.
Be sure to activate the Python virtual environment if you have one.
Usage: ./llluck.py infile [season]
infile: input file to read, typically with the season number as the first set of digits in the filename. season: the season number (required if the season number is not in the input filename)
Produces three output files:
ll{season}.csv - a CSV including all the luck computations lucky{season}.bbcode - the luckiest 100 LLamas in BBCode format unlucky{season}.bbcode - the least lucky 100 LLamas in BBCode format
After creating these files, upload the ll{season}.csv file to Dropbox and copy its shared URL. Then run
./ref.py {season} {URL}
to create lucky{season}.txt and unlucky{season}.txt, ready to cut-and-paste into the Message Board.