whist_core.scoring.elo

Elo Rating Calculator

Classes

EloRater

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:
Return type:

None

static _k_factor(player)
Parameters:

player (whist_core.user.player.Player)

Return type:

int

static _score_delta(team, opponent, scores)
Parameters:
Return type:

float

static _expected_score(team, opponent)
Parameters:
Return type:

float

static _team_quotient(team)
Parameters:

team (whist_core.scoring.team.Team)