2011-05-23, 11:14 PM
I've definitely thought of it that way. It just made sense at the time that a card should come out from a deck (a larger unit), which is how I view the relationship for this particular case, and so should a poker hand (5 cards).
It only makes sense though, that a card and a deck are basic building blocks for any card game. A card should have only 2 properties: the value and the name for that value. A deck, I don't know, it probably has more methods than variables. Everything else is Poker-exclusive.
It only makes sense though, that a card and a deck are basic building blocks for any card game. A card should have only 2 properties: the value and the name for that value. A deck, I don't know, it probably has more methods than variables. Everything else is Poker-exclusive.

