whist_core.scoring.score

Result after one hand.

Classes

Score

Score of a hand being played.

Module Contents

class whist_core.scoring.score.Score(teams, scores, **data)

Bases: pydantic.BaseModel

Score of a hand being played.

Parameters:
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:

whist_core.scoring.team.Team

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