calculate

fun calculate(white: Player, black: Player, outcome: Outcome)

Calculates the new Elo ratings for both participants and updates their Player.currentElo properties directly.

Parameters

white

The player playing as white.

black

The player playing as black.

outcome

The result of the match (e.g., White Win, Black Win, or Draw).