I’m trying to design a card game, which sometime uses cards in a “different way”.
My question is: what are the best methods, or an already made module to look at, to obtain the followin “features”?
Some cards, once drawn, needs on or more “tokens” on them, in defined positions (the card have “slots” drawn fo the token).
So i’d like to “force” (snap) the tokens on the card. More, the tokens, once placed, should “follow” the card when moved, or return in the “token pool” when the card is discarded…
The game requires that some cards will change position at the end of the turn. They are all placed in a line: at the end of the turn some card will need to go left, some right, some stay still (this will be a card property/trait). If the new position is already occupied, the newcoming card will go “under” the one that’s already there, making a column.
So, i don’'t know if the possible locations (which are 4, anyway) should be decks, zones, or what, and how to tell to a card where to go.
I thought about making the cards on the “zones” as an “always-expanded-stack” (to don’t have to manage the “tiling” when a new card is added)… dunno if it is possible (or if it is the right way)