Example #1
0
 // Load the game and build the maze and loop for user moves
 public void Play()
 {
     //Reading the size
     Helpers.ConsoleReadInt("Enter Maze Size : ", out int MazeSize);
     PlayerScore = 10;
     MazeService.BuildMaze(MazeSize);
     Enterance   = MazeService.GetEntranceRoom();
     VisitedMaze = new Maze(MazeSize, Enterance);
     ResetAllowedDirections();
     CurrentRoom = Enterance;
     VisitedMaze.ConsolePrint(CurrentRoom);
     while (AskToMove())
     {
         ;
     }
 }