Exemple #1
0
        public void PartOne()
        {
            var input      = Helpers.FileHelper.ParseFile(InputFile);
            var controller = new ConwayController(input);

            controller.SimulateSteps(6);

            Assert.IsTrue(controller.NumActive == 293);
        }
Exemple #2
0
        public void PartTwo()
        {
            var input      = Helpers.FileHelper.ParseFile(InputFile);
            var controller = new ConwayController(input, dimensions: 4);

            controller.SimulateSteps(6);

            Assert.IsTrue(controller.NumActive == 1816);
        }
Exemple #3
0
        public void Test_KnownCubes_4D()
        {
            var input      = Helpers.FileHelper.ParseFile(TestFile);
            var controller = new ConwayController(input, dimensions: 4);

            controller.SimulateSteps(6);

            Assert.IsTrue(controller.NumActive == 848);
        }