From 5399ffd0085d24950eff409eebf9aac139b6e0aa Mon Sep 17 00:00:00 2001 From: jandrews Date: Mon, 5 Jan 2026 09:55:00 -0500 Subject: [PATCH] updated card mapping --- __pycache__/card.cpython-311.pyc | Bin 1033 -> 1035 bytes card.py | 2 +- dealer.py | 6 +++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/__pycache__/card.cpython-311.pyc b/__pycache__/card.cpython-311.pyc index c8d743301ec623bab2bc7ab1e805ac83e9e5d1e8..37a300d479d18816f0c8a8aa8888cef9c438af07 100644 GIT binary patch delta 140 zcmeC==;q*C&dbZi00d%*u9?f2Hu6<4G4f7sXEKqJ1`0MX+!c|Y;W(pcqTdw14wfFy r4_piaB9kvOb&9gFN`7EKCngs%C!6vz0%b6Xk07xxSR{&gfi?jEU{fG_ delta 138 zcmeC?=;YvA&dbZi00i^pTrxK@Zse0RULBAb$V= 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))