Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            //MazeBuilder simpleBuilder2 = new MazeBuilder();
            RandomDirectionMazeBuilder simpleBuilder2 = new RandomDirectionMazeBuilder();

            //Maze simpleMaze1 = simpleBuilder.GenerateRandomMaze(51, 51, rnd1);

            for (int x = 1; x < 10000; x++)
            {
                Random rnd1        = new Random();
                Maze   simpleMaze2 = simpleBuilder2.GenerateRandomMaze(51, 51, rnd1, x);
                MazeConsoleRenderer.renderMaze(simpleMaze2);
                Console.Read();
            }

            // Random rnd2 = new Random(2);
            // Maze simpleMaze2 = simpleBuilder.GenerateRandomMaze(7, 3, rnd2);


            // Console.WriteLine("======================");
            // MazeConsoleRenderer.renderMaze(simpleMaze2);

            // Maze testMaze = simpleBuilder.GenerateTestMaze();
            // MazeConsoleRenderer.renderMaze(testMaze);
        }
 public void SetUp()
 {
     builder = new RandomDirectionMazeBuilder();
 }