derp
This commit is contained in:
parent
705b5a849f
commit
aae68cc83c
1 changed files with 1 additions and 2 deletions
|
@ -6,8 +6,7 @@ class Player:
|
||||||
def tally_hand(self):
|
def tally_hand(self):
|
||||||
cards = [card[0] for card in self.hand]
|
cards = [card[0] for card in self.hand]
|
||||||
cards = ['11' if card == 'A' else card for card in cards]
|
cards = ['11' if card == 'A' else card for card in cards]
|
||||||
scores = [10 if card in 'JQK0' else int(card) for card in cards]
|
return [10 if card in 'JQK0' else int(card) for card in cards]
|
||||||
return scores
|
|
||||||
|
|
||||||
def score(self, game):
|
def score(self, game):
|
||||||
if self.name == 'Dealer' and game.active:
|
if self.name == 'Dealer' and game.active:
|
||||||
|
|
Loading…
Add table
Reference in a new issue