int main() { // declare the cells Cell maze[16][16]; Cell real_maze[16][16]; Cell mouse_maze[16][16]; char rawMaze[33][65]; RawMaze_read(rawMaze); // Reads the raw maze into char array RawMaze_print(rawMaze); // Prints it out so we cna double check.. Maze_initFromRaw(real_maze, rawMaze); // init the wall values Maze_print(real_maze); // print the initial flood value Maze_flood(real_maze); // flood the maze with one layer Maze_print(real_maze); // print the initial flood value }
int main(int argc, char **argv) { bool printed; Maze myMaze; printed = EXIT_FAILURE; TRY( (myMaze = Maze_new()) ); TRY(argc > 1); TRY(Maze_import(myMaze, argv[1])); Maze_print(myMaze); printed = EXIT_SUCCESS; FINALLY: Maze_free(&myMaze); return printed; }