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

            controller.SimulateSteps(6);

            Assert.IsTrue(controller.NumActive == 293);
        }
示例#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);
        }
示例#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);
        }