swap deck
This commit is contained in:
parent
d14d6c23b0
commit
27cff67006
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue