Skip to content

Conversation

@ralphos
Copy link

@ralphos ralphos commented Dec 6, 2012

Completed all assignments, however I was unable to write one test (to check if the player goes bust). Please see the comment I left in the commit.

blackjack.rb Outdated
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if you want to be testing the hit method, or another method that tests the cards to see if a bust condition was reached. That method would be easier tested, because you could pass it the cards to tell if it it busted or not.

Then, you could test that the hit returns (or at least calls) the bust_condition_test

@jwo
Copy link
Member

jwo commented Dec 6, 2012

looks good --- I added some notes on the hit method... I might not be making sense on that... see if you follow --- if not, let me know!

…test condition & if method is received by #hit
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