Example #1
0
        public static void Main(string[] args)
        {
            string[,] input = 
            {
                {"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"},
            };


            var l = new Labyrinth(input);
            l.CalculateDistances();

            l.ConsolePrint();
        }
Example #2
0
        public static void Main(string[] args)
        {
            string[,] input =
            {
                { "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" },
            };


            var l = new Labyrinth(input);

            l.CalculateDistances();

            l.ConsolePrint();
        }