Skip to main content
4 events
when toggle format what by license comment
Mar 7, 2014 at 21:33 comment added user22815 @codebreaker one thing that can help in that case is encapsulating the card in another object. An Ace of Spades is what it is. Location does not define its identity, and a card probably should be immutable. Maybe have a Zone contain cards: maybe have a CardDescriptor that contains a card, its location, face up/down status, or even rotation for games that care about that. Those are all mutable properties that do not alter a card's identity.
Dec 4, 2013 at 20:53 history edited Tulains Córdova CC BY-SA 3.0
some grammar and style
Dec 4, 2013 at 20:40 comment added codebreaker I considered the zone being a property of the card, but since my Cards work better as immutable objects, I decided this way was best. Thanks for the advice.
Dec 4, 2013 at 20:32 history answered DougM CC BY-SA 3.0