Skip to content

Episode 1: Panda-Eagle levels #23

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

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

Conversation

brittknee
Copy link

I modified the Game api to restrict access to the dealer_hand and player_hand attributes in the Eagle level. I did not want to allow access to those attributes from outside the class - not sure if that is a good design decision or not.

In the Tiger level I struggled with the best way to structure the test (line 236) - I attempted a mock but couldn't get it to work for me.

I'd love some feedback on my code and if there would have been a better way to approach things.

Thanks!

@jwo
Copy link
Member

jwo commented Mar 3, 2013

Hi @brittknee --- there are some test failures in the code (https://travis-ci.org/RubyoffRails/Episode1-Summer2012/builds/5169528). Do you want to work on those and resubmit with passing tests?

I'll add some feedback right now, but I'd like the tests to pass 😄

@@ -85,7 +85,7 @@ def stand
def status
{:player_cards=> @player_hand.cards,
:player_value => @player_hand.value,
:dealer_cards => @dealer_hand.cards,
:dealer_cards => dealer_cards,
Copy link
Member

Choose a reason for hiding this comment

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

Yay! This is nice,

@jwo
Copy link
Member

jwo commented Mar 3, 2013

Your code looks excellent. excellent!

@brittknee
Copy link
Author

@jwo - I just updated the code so the tests are now passing - I need to get in the habit of checking that first - haha. Thanks!

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