Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 882 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 882 Bytes

Deck of Cards

This little project is a set of classes that represent a deck of poker-style playing cards. (Fifty-two playing cards in four suits: hearts, spades, clubs, diamonds, with face values of Ace, 2-10, Jack, Queen, and King.)

Classes

This project is built around two main methods/operations; shuffle and dealOneCard.

shuffle()

Shuffle returns no value, but results in the cards in the deck being randomly permuted.

dealOneCard()

This function returns one card from the deck to the caller. If the caller makes a call dealOneCard() to an empty deck, then no card is dealt.

License

License: CC BY-NC-SA 4.0
This content is shared under the CreativeCommons Attribution-ShareAlike 4.0 license.

Author

© 2021 Javi Toro.