public final class Elo extends Object
Modifier and Type | Method and Description |
---|---|
static int |
calculateDifference(double winRatio)
Calculates the Elo rating difference between a player and its opponent based on the win ratio against this opponent.
|
static int |
calculateDifference(int wins,
int losses,
int draws)
Calculates the Elo rating difference between a player and its opponent based on the match record against this opponent.
|
public static int calculateDifference(int wins, int losses, int draws)
wins
- The number of wins. It has to be 0 or greater.losses
- The number of losses. It has to be 0 or greater.draws
- The number of draws. It has to be 0 or greater.public static int calculateDifference(double winRatio)
winRatio
- The win ratio. It has to between 0 and 1.Copyright © 2020. All rights reserved.