Ejemplo n.º 1
0
    public static void Main(string[] args)
    {
        string[,] labyrinthInitial = new string[, ]
        {
            { "0", "0", "0", "x", "0", "x" },
            { "0", "x", "0", "x", "0", "x" },
            { "0", "*", "x", "0", "x", "0" },
            { "0", "x", "0", "0", "0", "0" },
            { "0", "0", "0", "x", "x", "0" },
            { "0", "0", "0", "x", "0", "x" }
        };

        Labyrinth testLabyrinth = new Labyrinth(labyrinthInitial);

        Console.WriteLine("Labyrinth initial state:");
        testLabyrinth.PrintLabyrinthOnConsole();
        Console.WriteLine(new string('-', 30));

        testLabyrinth.FillLabyrinthWave();

        Console.WriteLine("Labyrinth filled state:");
        testLabyrinth.PrintLabyrinthOnConsole();
    }