static int Puzzle2(SeatLayoutSolver solver) { solver.Reset(); solver.Puzzle2Setup(); solver.Solve(); return(solver.GetOccupiedSeatsCount()); }
static void Main(string[] args) { string[] content = System.IO.File.ReadAllLines(@"input.txt"); SeatLayoutSolver solver = new SeatLayoutSolver(content); Console.WriteLine("Puzzle 1 : " + Puzzle1(solver)); Console.WriteLine("Puzzle 2 : " + Puzzle2(solver)); }