By Mary Dickson.
Deck of Cards Exploring OOP with Ruby. This program will create an instance of a 52 card deck. It was written using BDD testing (red, green, refactor) to ensure that a deck can be created and shuffled.
Approach:
- Cards hold a rank and a suit
- Deck initializes as standard 52 card deck, or can be customized by replacing the ranks and suits. Initializing a deck creates the 52 cards in order, calling .shuffle! shuffles them.
rake test
to run tests
- Mary Dickson (https://github.com/marythought)
- This is a Code Fellows Ruby DA project with programing input from the instructor, TA, and classmates.