This commit is contained in:
jandrews
2026-01-13 12:57:09 -05:00
parent 5399ffd008
commit 39695c2d92
4 changed files with 131 additions and 13 deletions

View File

@@ -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