Update a player or team’s Elo rating after a win, draw or loss.
Expected score = 1 ÷ (1 + 10^((opp − you)/400)); new rating = old + K × (result − expected).