Esempio n. 1
0
        public void PartOne()
        {
            var cc     = new ChronalCoordinates(@"C:\Users\joshu\github\AdventOfCode2018\src\DaySix\input.txt");
            int answer = cc.GetMaxArea();
            var s      = cc.GetMap();

            Assert.Equal(3687, answer);
        }
Esempio n. 2
0
        public void ExamplePartOne()
        {
            var lines = new string[]
            {
                "1, 1",
                "1, 6",
                "8, 3",
                "3, 4",
                "5, 5",
                "8, 9"
            };

            var cc     = new ChronalCoordinates(lines);
            int answer = cc.GetMaxArea();
            var s      = cc.GetMap();

            Assert.Equal(17, answer);
        }