Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            char[,] matrix = new char[,]
            {
                { '*', 'x', '*', 'x', '*', '*' },
                { 'x', 'x', '*', 'x', 'x', '*' },
                { '*', 'x', 'x', 'x', '*', 'x' },
                { '*', 'x', '*', 'x', '*', 'x' },
                { '*', 'x', '*', 'x', '*', '*' },
                { '*', 'x', '*', 'x', '*', '*' },
            };

            var lab = new Labirint(matrix);
            lab.FindLargestConnectedArea();
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            char[,] matrix = new char[, ]
            {
                { '*', 'x', '*', 'x', '*', '*' },
                { 'x', 'x', '*', 'x', 'x', '*' },
                { '*', 'x', 'x', 'x', '*', 'x' },
                { '*', 'x', '*', 'x', '*', 'x' },
                { '*', 'x', '*', 'x', '*', '*' },
                { '*', 'x', '*', 'x', '*', '*' },
            };

            var lab = new Labirint(matrix);

            lab.FindLargestConnectedArea();
        }