public void TestNumberOfBlackTilesAfterDays(int days, int expected) { Floor floor = new Floor(); floor.FlipTilesFromFile("input/day24.txt"); floor.ApplyRulesForDays(days); Assert.Equal(expected, floor.NumberOfBlackTiles()); }
public override Day Run() { dayOfMonth = 24; stopwatch.Start(); Floor floor = new Floor(); floor.FlipTilesFromFile("input/day24.txt"); answer_part1 = floor.NumberOfBlackTiles().ToString(); floor = new Floor(); floor.FlipTilesFromFile("input/day24.txt"); floor.ApplyRulesForDays(100); answer_part2 = floor.NumberOfBlackTiles().ToString(); return(this); }