Created
January 1, 2013 23:29
-
-
Save okaram/4430955 to your computer and use it in GitHub Desktop.
A simple but complete TicTacToe game for iOS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface TTTViewController : UIViewController { | |
UIImage* imgs[2]; | |
} | |
@property IBOutletCollection(UIButton) NSArray*board; | |
@property IBOutlet UIImageView* currentPlayerView; | |
@property int currentPlayer; | |
@property boolean_t playing; | |
-(IBAction)cellPressed:(id)sender; | |
-(IBAction)restartGame:(id)sender; | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment