Example #1
0
        public void TestNumberOfActiveCubes()
        {
            ConwayCube cube = new ConwayCube("input/day17.txt");

            cube.Run(6, 3);
            Assert.Equal(112, cube.NumberOfActiveCubes());
        }
Example #2
0
        public override Day Run()
        {
            dayOfMonth = 17;
            stopwatch.Start();
            ConwayCube cube = new ConwayCube("input/day17.txt");

            cube.Run(6, 3);
            answer_part1 = cube.NumberOfActiveCubes().ToString();
            cube         = new ConwayCube("input/day17.txt");
            cube.Run(6, 4);
            answer_part2 = cube.NumberOfActiveCubes().ToString();
            return(this);
        }