Closed jamesdabbs closed 9 years ago
https://github.com/rob-hutchinson/blackjack.git
I believe the tests all run (and I added a few to make sure that my Aces were giving the correct score). I got start on a first attempt at the game blackjack but didn't make it very far. Also, I need to rethink how my "to_s" method for the Hand class works. It passes the test but in practice is malfunctioning. I'll ask you about it tomorrow.
Cool, definitely looking good :+1: A few nitpicks -
value
method to change the @value
variable depending on the @value
variable.each
again here?join(', ')
.I'm not sure how playable the hard mode is (or how much you want it to be), but consider adding betting, money, rounds, and cumulative scores if you want to keep going further.
Due on Feb 04 @ 09:00am
Objectives
Learning Objectives
@instance_variables
and an object's internal statevariable_name
come from?)Performance Objectives
After completing this assignment, you be able to effectively use
Class
es to structure and organize logic and datainitialize
and method definition to implement classes to a specrequire
to split projects into multiple filesDetails
Deliverables
A link to a repo containing:
blackjack.rb
file.Requirements
ruby blackjack_spec.rb
should show all tests passing.Normal Mode
Get the specs passing, implementing the classes in order.
Hard Mode