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)));
        }
Example #2
0
        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);
        }
Example #3
0
        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();
        }