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

finish game, add 'QH' card show, add 'stand for player on bust', add 'no... #37

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

noahpatterson
Copy link

...t show dealer cards'. Thanks for the feedback!

@@ -14,9 +14,13 @@ def value
end

def to_s
"#{@value}-#{suit}"
"#{@value}#{suit.to_s.chr.capitalize}"
Copy link
Member

Choose a reason for hiding this comment

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

chr works (I tried it :) ) but its a tad confusing. maybe

"#{@value}#{suit.to_s[0].capitalize}" makes more sense

And, this also works, but I'm not sure if its easier or harder to understand

`"#{@value}#{suit[0].capitalize}"

@jwo
Copy link
Member

jwo commented Dec 10, 2013

Excellent submission! I was unsure about passing around the player value, but I think it all worked well!

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