:py:mod:`whist_core.scoring.elo` ================================ .. py:module:: whist_core.scoring.elo .. autoapi-nested-parse:: Elo Rating Calculator Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: whist_core.scoring.elo.EloRater .. py:class:: EloRater Static class that calculates the Elo-Rating for players after several hands played. .. py:method:: rate(teams: list[whist_core.scoring.team.Team], scores: whist_core.scoring.score_card.ScoreCard) -> None :staticmethod: Calculates the new rating of player after several hand played. :param teams: :type teams: :param scores: :type scores: :return: :rtype: .. py:method:: _k_factor(player: whist_core.user.player.Player) -> int :staticmethod: .. py:method:: _score_delta(team: whist_core.scoring.team.Team, opponent: whist_core.scoring.team.Team, scores: whist_core.scoring.score_card.ScoreCard) -> float :staticmethod: .. py:method:: _expected_score(team: whist_core.scoring.team.Team, opponent: whist_core.scoring.team.Team) -> float :staticmethod: .. py:method:: _team_quotient(team: whist_core.scoring.team.Team) :staticmethod: