예제 #1
0
 private static void _2017DayTwentyOneShowResultsOf3Cycles()
 {
     Puzzles._2017.DayTwentyOne dayTwentyOne = Puzzles._2017.DayTwentyOne.Puzzle();
     dayTwentyOne.PerformIterations(2);
     dayTwentyOne.DrawImage();
     Console.ReadLine();
 }
예제 #2
0
        private static void _2017DayTwentyOnePartTwo()
        {
            Console.WriteLine("2017 Day 21 Part 2 Output");
            Puzzles._2017.DayTwentyOne dayTwentyOne = Puzzles._2017.DayTwentyOne.Puzzle();
            dayTwentyOne.PerformIterations(18);
            int solution = dayTwentyOne.GetOnPixels();

            Console.WriteLine("Solution: " + solution);
            Console.ReadLine();
        }