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