-
Notifications
You must be signed in to change notification settings - Fork 11
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
base: master
Are you sure you want to change the base?
Conversation
@@ -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""" |
There was a problem hiding this comment.
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())) |
There was a problem hiding this comment.
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.
@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. |
No description provided.