whist_core.game.rubber
Rubber of whist
Classes
Implementation of a rubber. |
Module Contents
- class whist_core.game.rubber.Rubber
Bases:
pydantic.BaseModelImplementation of a rubber.
- max_games: int = 3
- games: list[whist_core.game.game.Game] = []
- teams: list[whist_core.scoring.team.Team]
- property games_played: int
Amounts of games played already. :rtype: int
- Return type:
int
- property done: bool
Checks if the rubber is done. :return: True if done else False :rtype: bool
- Return type:
bool
- current_game()
Returns the current game.
- Return type:
- next_game()
Creates a new game if the previous is done. :rtype: Game
- Return type: