diff --git a/__pycache__/card.cpython-311.pyc b/__pycache__/card.cpython-311.pyc index c8d7433..37a300d 100644 Binary files a/__pycache__/card.cpython-311.pyc and b/__pycache__/card.cpython-311.pyc differ diff --git a/card.py b/card.py index 73db566..ca8b914 100644 --- a/card.py +++ b/card.py @@ -10,7 +10,7 @@ class Card: return str(self.face) def deal(self): - self.face = randint(1, 11) + 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. diff --git a/dealer.py b/dealer.py index a7f0998..75a846f 100644 --- a/dealer.py +++ b/dealer.py @@ -14,9 +14,13 @@ def deal_first(): dealer_show = Card() if dealer_show == 1: print("dealer shown card:"+ "Ace") - if dealer_show == 10: + if dealer_show == 11: print("dealer shown card:"+ "Jack") #continue code here to show the correct face based on what was drawn + if dealer_show == 12: + print("dealer shown code:"+ "Queen") + if dealer_show == 13: + print("dealer shown card:"+ "King") print("dealer shown card:"+ str(dealer_show))