Skip to content

Instantly share code, notes, and snippets.

@atomicbird
Created July 25, 2013 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atomicbird/6084043 to your computer and use it in GitHub Desktop.
Save atomicbird/6084043 to your computer and use it in GitHub Desktop.
struct x {
int y;
};
@interface Game : NSObject {
char fields[9];
BOOL singlePlayer;
BOOL isPlayerOne;
BOOL wasPlayerOne;
long int played;
int wins;
int ties;
int losts;
int marks;
struct x someX;
}
- (BOOL)getIsPlayerOne;
- (struct x)getMatches;
- (void)restart;
- (id)initWithMode:(BOOL)mode;
- (char)haveWinner;
- (int)canWin:(char)player;
- (void)refreshGames:(char)player;
- (int)playCel;
- (void)play:(int)field;
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment