whist_core.game.rubber

Rubber of whist

Module Contents

Classes

Rubber

Implementation of a rubber.

class whist_core.game.rubber.Rubber

Bases: pydantic.BaseModel

Implementation of a rubber.

property games_played: int

Amounts of games played already. :rtype: int

property done: bool

Checks if the rubber is done. :return: True if done else False :rtype: bool

max_games: int = 3
games: list[whist_core.game.game.Game] = []
teams: list[whist_core.scoring.team.Team]
current_game() whist_core.game.game.Game

Returns the current game.

next_game() whist_core.game.game.Game

Creates a new game if the previous is done. :rtype: Game