Skip to content

Commit

Permalink
minor bug fix for valid_deck()
Browse files Browse the repository at this point in the history
  • Loading branch information
ja3537 committed Oct 11, 2022
1 parent bbb2182 commit 080205e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ def generate_deck(rng, random=False):

def valid_deck(deck):
valid = list(range(52))
deck.sort()
return valid == deck
new_deck = deck.copy()
new_deck.sort()
return valid == new_deck

0 comments on commit 080205e

Please sign in to comment.