Example #1
0
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 1");
            Console.ForegroundColor = ConsoleColor.White;
            Day1.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 2");
            Console.ForegroundColor = ConsoleColor.White;
            Day2.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 3");
            Console.ForegroundColor = ConsoleColor.White;
            Day3.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 4");
            Console.ForegroundColor = ConsoleColor.White;
            Day4.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 5 (May take a while!)");
            Console.ForegroundColor = ConsoleColor.White;
            Day5.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 6");
            Console.ForegroundColor = ConsoleColor.White;
            Day6.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 7");
            Console.ForegroundColor = ConsoleColor.White;
            Day7.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 8");
            Console.ForegroundColor = ConsoleColor.White;
            Day8 day8 = new Day8();

            day8.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 9");
            Console.ForegroundColor = ConsoleColor.White;
            Day9 day9 = new Day9();

            day9.Run();

            Console.ForegroundColor = ConsoleColor.Green;
            Console.WriteLine("DAY 10");
            Console.ForegroundColor = ConsoleColor.White;
            Day10.Run();
        }
Example #2
0
 public void Example1()
 {
     //R2, L3
     //answer: 5
     Assert.AreEqual(5, Day1.Run("R2, L3"));
 }
Example #3
0
 public void Example3()
 {
     Assert.AreEqual(12, Day1.Run("R5, L5, R5, R3"));
 }
Example #4
0
 public void SecondVisited()
 {
     Day1.Run("R8, R4, R4, R8");
 }
Example #5
0
 public void Example2()
 {
     Assert.AreEqual(2, Day1.Run("R2, R2, R2"));
 }