whist_core.scoring.elo
Elo Rating Calculator
Classes
Static class that calculates the Elo-Rating for players after several hands played. |
Module Contents
- class whist_core.scoring.elo.EloRater
Static class that calculates the Elo-Rating for players after several hands played.
- static rate(teams, scores)
Calculates the new rating of player after several hand played. :param teams: :type teams: :param scores: :type scores: :return: :rtype:
- Parameters:
teams (list[whist_core.scoring.team.Team])
- Return type:
None
- static _k_factor(player)
- Parameters:
player (whist_core.user.player.Player)
- Return type:
int
- static _score_delta(team, opponent, scores)
- Parameters:
team (whist_core.scoring.team.Team)
opponent (whist_core.scoring.team.Team)
- Return type:
float
- static _expected_score(team, opponent)
- Parameters:
team (whist_core.scoring.team.Team)
opponent (whist_core.scoring.team.Team)
- Return type:
float
- static _team_quotient(team)
- Parameters:
team (whist_core.scoring.team.Team)