generated from mwc/project_game
made some updates to card and dealer to deal with face cards
This commit is contained in:
4
card.py
4
card.py
@@ -11,5 +11,9 @@ class Card:
|
||||
|
||||
def deal(self):
|
||||
self.face = randint(1, 11)
|
||||
#I think here we should return 1-13 to include ace and face cards.
|
||||
#This will make checking if 4 of a kind have been dealt easier.
|
||||
#THEN when it comes to scoring we can use the value to calculate face cards as 10 points.
|
||||
|
||||
return self.face
|
||||
|
||||
|
||||
Reference in New Issue
Block a user