static void Main(string[] args) { AgeGamePlayer.Run(new System.Collections.Generic.List <int> { 0, 3, 6 }, 2020); var input = InputParser.Parse("input.txt"); Console.WriteLine("---- Part 01 ----"); var part1 = FirstStar.Run(input); Console.WriteLine($"Result: {part1}"); Console.WriteLine("---- Part 02 ----"); var part2 = SecondStar.Run(input); Console.WriteLine($"Result: {part2}"); Console.WriteLine("-----------------"); Console.WriteLine($"1) Copy {part1} to Clipboard"); Console.WriteLine($"2) Copy {part2} to Clipboard"); Console.WriteLine("Any) Quit"); var key = Console.ReadKey(); if (key.Key == ConsoleKey.D1) { WindowsClipboard.SetText(part1); } else if (key.Key == ConsoleKey.D2) { WindowsClipboard.SetText(part2); } }
public static string Run(List <int> numbers) => AgeGamePlayer.Run(numbers, 2020);