Skip to content

AlMakinah/card-deck-new-bahiafayez

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercise

Create a class called Card and CardDeck which would represent a real deck and all possible properties and methods.

Card

  • A Card would have a suit (Spades, Clubs, Diamonds, Hearts) and a rank (1 -> 13)

Card Deck

  • A Card Deck has a list of Cards
  • You can shuffle a deck
  • You can peek (get the value of the card on top of the deck)
  • You can deal (return the value of the card on top of the deck. It is removed from deck afterwards)
  • You can get the size of the deck (the number of cards in the deck)

Make sure all the tests are passing.

Running Tests

bundle install 

Then after rspec is installed, run the following command from the root folder of the project.

rspec spec

About

card-deck-new-bahiafayez created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages