generated from mwc/project_game
updated
This commit is contained in:
7
card.py
7
card.py
@@ -1,5 +1,5 @@
|
||||
#module defines the value of the card.
|
||||
#the cards in blackjack have a range in value from 1-10 with a face card being worth 10 and an ace being worth 1 or 11 depending on what you choose it to be worth.
|
||||
#module defines the value of the card. 1-13 display and value are defined outside of this class.
|
||||
|
||||
from random import randint
|
||||
|
||||
class Card:
|
||||
@@ -11,9 +11,6 @@ class Card:
|
||||
|
||||
def deal(self):
|
||||
self.face = randint(1, 13)
|
||||
#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