private static void runDayTwo()
        {
            string input = System.IO.File.ReadAllText("./DayTwo/DayTwoInput.txt");

            BoxChecksumCalculator boxChecksumCalculator = new BoxChecksumCalculator(input);

            Console.WriteLine("Checksum for box IDs:" + boxChecksumCalculator.Checksum().ToString());

            CommonBoxIdCalculator commonBoxIdCalculator = new CommonBoxIdCalculator(input);

            Console.WriteLine("Common box ID characters:" + commonBoxIdCalculator.CommonLettersOnCorrectBoxId());
        }
Ejemplo n.º 2
0
 public void OneTimeSetUp()
 {
     _calculator = new BoxChecksumCalculator();
 }