Exemplo n.º 1
0
        public void ShortestPathIsCorrect(string passcode, int x, int y, string expected)
        {
            var sut    = new AdventOfCode2016.Day17.Day17(passcode);
            var actual = sut.ShortestPath(x, y);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        private static void Day17()
        {
            var d17 = new Day17.Day17("udskfozm");

            Console.WriteLine($"Shortest path = {d17.ShortestPath(3, 3)}");
            Console.WriteLine($"Longest path = {d17.LongestPath(3, 3)}");
        }