예제 #1
0
        public Map Read()
        {
            string[] lines = File.ReadAllLines(_inputFilePath);

            int size = int.Parse(lines[0]);

            Pillar[,] map = new Pillar[size, size];

            for (int y = 0; y < map.GetLength(0); y++)
            {
                ParseLine(y, lines[y + 1], map);
            }

            return(new Map(map));
        }