Author here - it's based on finishing positions (so it's not winner-take-all) and then TrueSkill by Microsoft (https://trueskill.org/). It's basically a multiplayer version of Elo that's used in chess and other two-player games.
I am not even half way through it and I now understand how python actually works under hood. This is great for understanding how a lot of interpreted languages work