Skip to content

Commit 72555af

Browse files
authored
Update main.py
1 parent 38f52af commit 72555af

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

main.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ def __init__(self):
4343

4444
def __repr__(self):
4545
return "Standard deck of cards:{0} cards remaining".format(len(self.cards))
46+
47+
def shuffle(self, times=1):
48+
random.shuffle(self.cards)
49+
print("Deck Shuffled")
50+
51+
def deal(self):
52+
return self.cards.pop(0)
4653

4754
class Player(object):
4855
def __init__(self):

0 commit comments

Comments
 (0)