public void PartTwo() { var input = Helpers.FileHelper.ParseFile(InputFile); var map = new SeatingMap(input, tolerance: 5, searchFirstVisible: true); map.SimulateSeating(); Assert.IsTrue(map.Occupied == 2045); }
public void Test_KnownVisibleSeats() { var input = Helpers.FileHelper.ParseFile(TestFile); var map = new SeatingMap(input, tolerance: 5, searchFirstVisible: true); map.SimulateSeating(); Assert.IsTrue(map.Occupied == 26); }
public void PartOne() { var input = Helpers.FileHelper.ParseFile(InputFile); var map = new SeatingMap(input); map.SimulateSeating(); Assert.IsTrue(map.Occupied == 2265); }
public void Test_KnownAdjacentSeats() { var input = Helpers.FileHelper.ParseFile(TestFile); var map = new SeatingMap(input); map.SimulateSeating(); Assert.IsTrue(map.Occupied == 37); }