Original Post
I'm thinking of writing a game so I can play my favourite (but old) CCG against the computer (finding human players has gotten REAL HARD (tm) recently, 'cos they're only interested in playing the latest game). Because of the nature of CCGs, every card has a unique effect on the game. I figure there are two possible ways of implementing this: 1. A generic Card class, with subtypes for each type of card (e.g., Characters, Equipment, Locations, etc.). To implement each card's unique characteristics, use a script that is parsed whenever that card could affect or be affected by the game. 2. Sub-class everything, so that every card eventually has its own class which encapsulates that card's unique properties. I suspect #1 is the best way, but I was wondering what everyone else thought. Anybody done something similar?