public void Part2WithTestData() { var conwayCubes = new ConwayCubes(_testData); conwayCubes.Cycle4D(6); conwayCubes.ActiveCubes.ShouldBe(848); }
public void Part2() { var conwayCubes = new ConwayCubes(_input); conwayCubes.Cycle4D(6); var answer = conwayCubes.ActiveCubes; TestContext.WriteLine($"Answer = {answer}"); }
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); }