Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing self variables to Deck of Cards solution #145

Merged
merged 1 commit into from
Mar 18, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def add_card(self, card):

def score(self):
total_value = 0
for card in card:
for card in self.cards:
total_value += card.value
return total_value

Expand Down Expand Up @@ -102,9 +102,9 @@ def __init__(self, cards):
self.deal_index = 0

def remaining_cards(self):
return len(self.cards) - deal_index
return len(self.cards) - self.deal_index

def deal_card():
def deal_card(self):
try:
card = self.cards[self.deal_index]
card.is_available = False
Expand Down