00001 #include "MazeGame.h" 00002 #include "Maze.h" 00003 #include "Builder.h" 00004 00005 /* 00006 */ 00007 void create_standard_maze() { 00008 /* 00009 */ 00010 Maze* maze; 00011 MazeGame game; 00012 StandardMazeBuilder builder; 00013 00014 game.CreateMaze(builder); 00015 maze = builder.GetMaze(); 00016 /* 00017 */ 00018 } 00019 /* 00020 */ 00021 void create_counting_maze() { 00022 /* 00023 */ 00024 int rooms, doors; 00025 MazeGame game; 00026 CountingMazeBuilder builder; 00027 00028 game.CreateMaze(builder); 00029 builder.GetCounts(rooms, doors); 00030 00031 std::cout << "The maze has " 00032 << rooms << " rooms and " 00033 << doors << " doors" << std::endl; 00034 /* 00035 */ 00036 } 00037 /* 00038 */ 00039 int main() { 00040 create_standard_maze(); 00041 create_counting_maze(); 00042 return 0; 00043 }