updateRating This function calculates the new ratings for two players based on their current ratings and the result of the game. It uses the Elo rating system to calculate the new ratings.
The current rating of Player A.
The current rating of Player B.
The result of the game.
The K-factor used in the Elo rating system. Default is 32.
updateRating This function calculates the new ratings for two players based on their current ratings and the result of the game. It uses the Elo rating system to calculate the new ratings.