public static void Main(string[] args) { var maze = new string[] { "#S######.#", "......#..#", ".#.##.##.#", ".#........", "##.##.####", "....#....#", ".#######.#", "....#.....", ".####.###.", "....#...G#", }; var solver = new MazeShortesLineFinder(maze); System.Console.WriteLine(solver.solve()); }