def __init__(self, **kwargs):
        """
        Deck constructor method.

        """
        self._cards = deque(kwargs.get("cards", []))

        self.jokers = kwargs.get("jokers", False)
        self.num_jokers = kwargs.get("num_jokers", 0)
        self.rebuild = kwargs.get("rebuild", False)
        self.re_shuffle = kwargs.get("re_shuffle", False)
        self.ranks = kwargs.get("ranks", DEFAULT_RANKS)
        self.decks_used = 0

        if kwargs.get("build", True):
            self.build()
def __init__ ( self , ** kwargs ) : self . _cards = deque ( kwargs . get ( "cards" , [ ] ) ) self . jokers = kwargs . get ( "jokers" , False ) self . num_jokers = kwargs . get ( "num_jokers" , 0 ) self . rebuild = kwargs . get ( "rebuild" , False ) self . re_shuffle = kwargs . get ( "re_shuffle" , False ) self . ranks = kwargs . get ( "ranks" , DEFAULT_RANKS ) self . decks_used = 0 if kwargs . get ( "build" , True ) : self . build ( )
Deck constructor method.