swap deck

This commit is contained in:
Adam 2022-12-22 05:00:59 -05:00
parent d14d6c23b0
commit 27cff67006

View file

@ -11,8 +11,8 @@ class Deck:
n_decks = int(n_decks) n_decks = int(n_decks)
n_decks = 8 if n_decks > 8 else n_decks n_decks = 8 if n_decks > 8 else n_decks
suits = '♠♥♦♣' suits = '♠♥♦♣'
# cards = 'A234567890JQK' cards = 'A234567890JQK'
cards = 'A0A0A0A0A0A0A' # cards = 'A0A0A0A0A0A0A'
while n_decks > 0: while n_decks > 0:
self.cards += [card + suit for card in cards for suit in suits] self.cards += [card + suit for card in cards for suit in suits]
n_decks -= 1 n_decks -= 1