Exemplo n.º 1
0
        public void TestRateInMaze1()
        {
            // test print
            RatInMaze.Print(maze, N, "  print input data  ");
            RatInMaze r = new RatInMaze(N);

            r.SolveMaze(maze, N);
            Assert.Pass();
        }
Exemplo n.º 2
0
    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();
    }