whist_core.game.hand ==================== .. py:module:: whist_core.game.hand .. autoapi-nested-parse:: Hand of whist Classes ------- .. autoapisummary:: whist_core.game.hand.Hand Module Contents --------------- .. py:class:: Hand Bases: :py:obj:`pydantic.BaseModel` Hand of whist. .. py:attribute:: tricks :type: list[whist_core.game.trick.Trick] :value: [] .. py:attribute:: trump :type: whist_core.cards.card.Suit .. py:method:: done() Check if the hand is done. :return: True if the hand is done, else False :rtype: bool .. py:property:: current_trick Returns the current trick. .. py:method:: deal(play_order) :staticmethod: Deals the hand and starts the first trick. :return: the first trick :rtype: Trick .. py:method:: next_trick(play_order) Starts the next trick. :return: the next trick :rtype: Trick .. py:method:: dict(*args, **kwargs) Returns as dictionary. .. py:method:: model_dump(*, mode = 'python', include=None, exclude=None, context=None, by_alias = None, exclude_unset = False, exclude_defaults = False, exclude_none = False, round_trip = False, warnings = True, fallback = None, serialize_as_any = False) Returns as dictionary. .. py:method:: _winner_plays_first_card(play_order)