public void TestRateInMaze1() { // test print RatInMaze.Print(maze, N, " print input data "); RatInMaze r = new RatInMaze(N); r.SolveMaze(maze, N); Assert.Pass(); }
public static void Main1(string[] args) { int N = 5; int[][] maze = { new int[] { 1, 1, 1, 1, 1 }, new int[] { 1, 1, 1, 1, 1 }, new int[] { 1, 1, 1, 1, 1 }, new int[] { 1, 1, 1, 1, 1 }, new int[] { 1, 1, 1, 1, 1 } }; RatInMaze r = new RatInMaze(N); r.solveMaze(maze, N); Console.ReadKey(); }