whist_core.game.legal_checker ============================= .. py:module:: whist_core.game.legal_checker .. autoapi-nested-parse:: Checks the legality of a move. Classes ------- .. autoapisummary:: whist_core.game.legal_checker.LegalChecker Module Contents --------------- .. py:class:: LegalChecker Static legal checker. .. py:method:: check_legal(hand, card, first) :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