Please note, this blog entry is from a previous course. You might want to check out the current one.
Add another tab for some “settings” in the game.
We will need to access the settings from both card games as well as from the settings view. Therefore we create a new class derived from NSObject with public properties of the “settings” which can be used by all of those controllers:
@interface GameSettings : NSObject @property (nonatomic) int matchBonus; @property (nonatomic) int mismatchPenalty; @property (nonatomic) int flipCost; @end
Continue reading “cs193p – Assignment #2 Extra Task #3”