This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import date | |
current_year = date.today().year | |
players = dict() | |
def readlist(timecontrol): | |
curplayer = "" | |
for line in lines: | |
field = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download ratings in TXT format at https://ratings.fide.com/download.phtml and unzip | |
# wget http://ratings.fide.com/download/standard_rating_list.zip | |
# unzip standard_rating_list.zip | |
# less than 1200 | |
cat standard_rating_list.txt | grep -v "FOA" | awk 'BEGIN{C=0;R=1200}{X=substr($0,114,4);if(X<R)C=C+1}END{S=R+99;print "0000-1199 "C}'; | |
# from 1200 to 2900, go by groups of 100 | |
RATING=1200 |