We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f099a0a commit 6b56e45Copy full SHA for 6b56e45
solutions/object_oriented_design/deck_of_cards/deck_of_cards.py
@@ -68,7 +68,7 @@ def add_card(self, card):
68
69
def score(self):
70
total_value = 0
71
- for card in card:
+ for card in self.cards:
72
total_value += card.value
73
return total_value
74
@@ -102,9 +102,9 @@ def __init__(self, cards):
102
self.deal_index = 0
103
104
def remaining_cards(self):
105
- return len(self.cards) - deal_index
+ return len(self.cards) - self.deal_index
106
107
- def deal_card():
+ def deal_card(self):
108
try:
109
card = self.cards[self.deal_index]
110
card.is_available = False
0 commit comments