View Single Post
Old 05-05-2004, 10:40 AM   #7 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
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.
__________________
Valmont is offline   Reply With Quote