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

Dean Fitzgerald - Blackjack #12

Open
wants to merge 28 commits into
base: master
Choose a base branch
from

Conversation

classicmurph
Copy link

No description provided.

@@ -0,0 +1,29 @@
"""Card class"""
"""A card will collaborate with Shoe and Hand class"""
"""A card is responsible for knowing its suit and rank"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should all be in the class docstring.

player.bank += 10
return False
elif dealer_hand_value < 17:
dealer_hand.add_card(Shoe.deal_card(Shoe()))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're creating a new shoe every time here. Is that intentional? Also, even if that is, you should call Shoe().deal_card() instead. What you have works, but incidentally and isn't the correct usage.

@cndreisbach
Copy link
Contributor

@classicmurph -- this is definite improvement. I'd like to sit down and talk about it as well. Let's do that tomorrow or early next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants