Card Game Basics
I am attempting to make a card/board game in Unity where action cards alter the board state. I assume the best way to pull this off is having each card be a member of the card class, and have the deck be a stack, array, or arraylist of card classes. This would allow the cards to contain info like their own cost-to-use and in-game effects, as well as their own associated image files. It is also important for players to be able to build a deck on their own, so initialization of the deck in-scene would need to be based on a set of cards received from the deck editor. Cards can only be in the deck, hand, or discard pile - there's no "in play" area or situation where you're laying a card onto a space on the table.
How would you go about initializing a deck for this? I feel as if my sense for the logic and pseudocode is decent but my C# "grammar and vocabulary" skills are sorely lacking.