예제 #1
0
        public void Part2WithTestData()
        {
            var conwayCubes = new ConwayCubes(_testData);

            conwayCubes.Cycle4D(6);
            conwayCubes.ActiveCubes.ShouldBe(848);
        }
예제 #2
0
        public void Part2()
        {
            var conwayCubes = new ConwayCubes(_input);

            conwayCubes.Cycle4D(6);
            var answer = conwayCubes.ActiveCubes;

            TestContext.WriteLine($"Answer = {answer}");
        }
예제 #3
0
        public void Part1WithTestData()
        {
            var conwayCubes = new ConwayCubes(_testData);

            conwayCubes.ActiveCubes.ShouldBe(5);
            conwayCubes.Cycle3D(1);
            conwayCubes.ActiveCubes.ShouldBe(11);
            conwayCubes.Cycle3D(5);
            conwayCubes.ActiveCubes.ShouldBe(112);
        }