Define a function to calculate the Elo rating for each player
Warning
This post is more than a year old. Information may be outdated.
If a higher-rated player beats a lower-rated player, their rating will go up, while the loser's rating will go down. Improving Elo is relatively easy but usually comes at the cost of complexity.
Probability
Comments