Esempio n. 1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Hello World!");
            //Day24Calc.Calc1();

            Day24Calc2.Calc2();
        }
Esempio n. 2
0
        public static void Calc1()
        {
            var ratings = new List <int>();

            var field  = ImportInput(Day24Input.Official);
            var rating = Day24Calc2.GetRating(field);

            while (!ratings.Contains(rating))
            {
                ratings.Add(rating);
                Day24Calc.PrettyPrintRating(rating);
                field  = DoLife(field);
                rating = Day24Calc2.GetRating(field);
            }
            Day24Calc.PrettyPrintRating(rating);
        }