mercredi 11 mars 2020

Is there any efficient design patter for cards in a cards game?

I have to implement a java card game. There are two types of cards with similar effects. The problem is that there are 30 cards. Is there an efficient design pattern (factory, decorator, ecc) to avoid creating a specific class for every card? The cards effects are parsed from Json file or from XML file.

Aucun commentaire:

Enregistrer un commentaire