Well dirs,
You have to think about your design.
I am a stranger to your code and a stranger to your
vision and concept.
So when you type...
Code:
class BlackJack : public card {}
...then what are you telling this stranger?
The first two concrete questions I have (and therefore you too!) is:
Quote:
1) Is "BLackJack" a game, or only the rules of the game, but not its assets? What is a "BlackJack".
2) Is (a) "BlackJack" a specialisation of (a) "card"?
|
Do you see the "weirdness" that my questions imply?
The Black Jack
game is NOT a specialisation of
cards if I may use some common sense. The Black Jack game IS NOT A CARD. Cards are one of the
entities involved in the Black Jack game. Just like "rules" are one of the enities of the Black jack game.
Give me a minute so I can make a *.gif drawing to make it visible.
Here I am again. Here is the drawing:
Let me give you a view on what would be a better design. Once a decent design is up, coding becomes easy.