I even threw in an extra.
Modify card to_s display format. Stand when player busts
Hide first dealer card until player stands. Hide dealer score until p…
I think this could be confusing to later-you in a couple of months... There''s an attr_reader :suit in this class. You're not writing over that variable (since it was a reader), but you could be if that gets changed later on.
Possibly something like this would be more explicit
when :diamonds then "D"
when :hearts then "H"
when :spaids then "S"
when :clubs then "C"
Of course, you could even do this if you wanted
better to say
well done! I left some stylistic suggestions... let me know what you think!
Make code more readable
OK, so this failed the build with TravisCI (https://travis-ci.org/RubyoffRails/Episode1-Summer2012/builds/3411231)
Why do you think it's failing?
Update suit-abbreviation to suit_abbreviation to prevent math being p…
Yep yep --- I wish we could have variable names with dashes in Ruby, but sadly negative.