:py:mod:`whist_core.game.rubber` ================================ .. py:module:: whist_core.game.rubber .. autoapi-nested-parse:: Rubber of whist Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: whist_core.game.rubber.Rubber .. py:class:: Rubber Bases: :py:obj:`pydantic.BaseModel` Implementation of a rubber. .. py:property:: games_played :type: int Amounts of games played already. :rtype: int .. py:property:: done :type: bool Checks if the rubber is done. :return: True if done else False :rtype: bool .. py:attribute:: max_games :type: int :value: 3 .. py:attribute:: games :type: list[whist_core.game.game.Game] :value: [] .. py:attribute:: teams :type: list[whist_core.scoring.team.Team] .. py:method:: current_game() -> whist_core.game.game.Game Returns the current game. .. py:method:: next_game() -> whist_core.game.game.Game Creates a new game if the previous is done. :rtype: Game