Exemple #1
0
 def __init__(self):
     # Constructor from inherited Card class
     Cards.__init__(self, suit=0, rank=0)
     self.deck = []  # items stored as example "A of Clubs"
     for suit in self.suits:
         for rank in self.ranks:  # Start at one b/c index 0 holds the dummy value
             self.deck.append(Cards(suit, rank))