public override string Second() { string filename = GetFilename(); List <string> input = System.IO.File.ReadAllLines(filename).ToList(); var conwayCubes = new ConwayCubes4D(input); conwayCubes.BootProcess(6); int activeCubes = conwayCubes.NrActiveCubes(); return(activeCubes.ToString()); }
public override bool Test2() { string filename = GetTestFilename(); List <string> input = System.IO.File.ReadAllLines(filename).ToList(); var conwayCubes = new ConwayCubes4D(input); conwayCubes.BootProcess(6); int activeCubes = conwayCubes.NrActiveCubes(); bool testSucceeded = activeCubes == 848; return(testSucceeded); }