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