Exemple #1
0
        public void Calibrate()
        {
            var input = @"
..#..........
..#..........
#######...###
#.#...#...#.#
#############
..#...#...#..
..#####...^..".Trim();

            var solver = new Day17();
            var result = solver.Calibrate(input);

            result.ShouldBe(76);
        }
Exemple #2
0
        public void Solve()
        {
            var code     = InputDataHelper.Get(17);
            var computer = new IntCodeComputer(code);

            computer.Run();

            var output = computer.Output();
            var input  = new string(output.Select(l => (char)l).ToArray());

            _testOutputHelper.WriteLine(input);

            var solver = new Day17();
            var result = solver.Calibrate(input);

            _testOutputHelper.WriteLine(result.ToString());
        }