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

            System.Console.WriteLine(solver.solve());
        }