Beispiel #1
0
 public Maze GenerateMaze(Coordinate startAt)
 {
     _maze.MazeData = MazeGenerator.GetMaze();
     _maze.StartAt  = startAt;
     _maze.Refresh();
     return(_maze);
 }
 public Maze GenerateMaze(Coordinate startAt)
 {
     //TODO: Concentrated in Algo to genrate maze but not on OOAD
     _maze.MazeData = GetMaze();
     _maze.StartAt  = startAt;
     _maze.Refresh();
     return(_maze);
 }
Beispiel #3
0
        public Maze SolveMaze(Maze maze)
        {
            _visitedRoute.Clear();
            _mazeRoute.Clear();
            _maze = maze;
            _maze.Refresh();
            SolveMaze();
            var solvedMaze = MergeMyRouteInMaze();

            solvedMaze.Draw();
            return(solvedMaze);
        }