The Fake Geek's blog: Design a deck of cards
This is a traditional OOD problem. To start, a card has two elements: the suit, and the value. So we will have an enum class Suit, which contains CLUBS, SPADES, HEARTS and DIAMONDS. We will also have an integer value, cardValue to represent the value of the card (1 - 13).Read full article from The Fake Geek's blog: Design a deck of cards
No comments:
Post a Comment