// // AppController.m // BoardGame #import "AppController.h" #import "GameBoard.h" @implementation AppController //A controller method that calls through to the game board for the moves... - (NSArray*)validLOAMovesFromSpot:(NSPoint)spot withBoard:(int[][])board { return [gameBoard validMovesFromSpot:spot withBoard:board]; } //some example usage of the IBOutlet gameBoard - (void)awakeFromNib { //sample hook into GameBoard... //test out our board by building a fresh board //and passing in the location of a piece on it //make an empty board int b[DIMENSION][DIMENSION]; int i; int j; for (i=0; i< DIMENSION; i++) for (j=0; j