whist_core.scoring.score
Result after one hand.
Classes
Score of a hand being played. |
Module Contents
- class whist_core.scoring.score.Score(teams, scores, **data)
Bases:
pydantic.BaseModelScore of a hand being played.
- Parameters:
teams (list[whist_core.scoring.team.Team])
scores (list[int])
data (Any)
- hand_score: dict
- __getitem__(item)
Returns a specific hand score.
- property winner: whist_core.scoring.team.Team
Returns the winner team. :rtype: Team
- Return type:
- won(team)
Check if the team won that round. :param team: Team for which to check if has won. :type team: Team :return: True if won, else false :rtype: bool
- Parameters:
team (whist_core.scoring.team.Team)
- Return type:
bool