Example #1
0
        public void Jump()
        {
            var actual = new[]
            {
                "............",
                "............",
                "........X...",
                "............",
                "........X.X.",
                ".........O..",
                "............",
                "............",
                "............",
                "............",
                "............",
                "............"
            };

            var expected = Solution.Jump(new int[] { 9, 5 }, actual);

            Console.WriteLine("Max jump: " + expected);
            Assert.AreEqual(expected, 2, "The max jump should be 2");
        }