whist_core.scoring.team

DAO of team.

Classes

Team

Data wrapper for a team.

Module Contents

class whist_core.scoring.team.Team

Bases: pydantic.BaseModel

Data wrapper for a team.

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

Hash value of the team object.

property rating: float

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

Return type:

float

games_played(amount=1)

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

Parameters:

amount (int)

Return type:

None