public void Box3DRandom() { var maze = new Maze(5, 6, 7); DisjointSetMazeGenerator.Generate(maze); LongestPathEndpointGenerator.Generate(maze, 0, 0, 0); Assert.AreEqual(maze, MazeSerializer.BoxDrawing.Deserialize3D(MazeSerializer.BoxDrawing.Serialize3D(maze))); }
public void LargeMaze() { var maze = new Maze(10, 10); DisjointSetMazeGenerator.Generate(maze); LongestPathEndpointGenerator.Generate(maze, 0, 0); Assert.NotNull(maze.Entrance); Assert.NotNull(maze.Exit); }
public void NewMaze() { var maze = new Maze(Dimensions); DisjointSetMazeGenerator.Generate(maze); LongestPathEndpointGenerator.Generate(maze, maze.Dimensions[0] / 2, maze.Dimensions[1] / 2, 0); this.maze = maze; MazeUpdated(); }