I have organized folders which are General, PlayingCard. And I will make SetCard folder for convenience.
If you already know, skip this.
- SET game consist of lots of cards. Each card has four features. which would be our model.
- Shape(ovals, squiggles, diamonds)
- Color(red, purple, green)
- Number(one, two, three)
- Shading(solid, striped, outlined)
I think it would be better use the Enum for our model, have it introduced in the lectures?
- SET consists of 3cards in which must satisfy as follows
- have the same shape
or
different shape separately And
have the same coloror
different color separatelyAnd
have the same numberor
different number separatelyAnd
have the same shadingor
different shading separately
- have the same shape
As you notice, I highlighted
or
andAnd
. It would be our match logic.
If you want detail instructions with graphic google it. or click link for English, link for Korean
-
- Add a new MVC to your Matchismo solution from last week which plays a simple version of the card matching game Set. A good solution to this assignment will use object-oriented programming techniques to share a lot of code with your Playing Card-based matching game.
- Structrue Set Card files. In SetCard folder, I made as follows
-
M : SetCard which is subclass of Card like PlayingCardGame, SetCardDeck which is subclass of Deck like PlayingCardDeck
-
V : EmptyVC in storyboard and have it class SetCardGameVC
-
C : SetCardGameVC which is subclass of CardGameViewController like PlayingCardGameVC. It has no entry points as of now.
-