:py:mod:`whist_core.game.legal_checker` ======================================= .. py:module:: whist_core.game.legal_checker .. autoapi-nested-parse:: Checks the legality of a move. Module Contents --------------- Classes ~~~~~~~ .. autoapisummary:: whist_core.game.legal_checker.LegalChecker .. py:class:: LegalChecker Static legal checker. .. py:method:: check_legal(hand: whist_core.cards.card_container.UnorderedCardContainer, card: whist_core.cards.card.Card, first: Optional[whist_core.cards.card.Card]) -> bool :staticmethod: Checks if move is legal. :param hand: of the current player :param card: the card which should be played next :param first: the first played card, can be None if no card has been played :return: True if legal else false