whist_core.scoring.team

DAO of team.

Module Contents

Classes

Team

Data wrapper for a team.

class whist_core.scoring.team.Team

Bases: pydantic.BaseModel

Data wrapper for a team.

property rating: float

The average Elo-Rating of the team members. :return: average team rating :rtype: float

players: list[whist_core.user.player.Player]
__hash__()

Hash value of the team object.

games_played(amount: int = 1) None

Increases the games played counter for each team member. :param amount: The amount of new games played. Default 1 :type amount: int :return: None :rtype: None