Example #1
0
        static void Main()
        {
            Console.WriteLine("Hello AdventOfCode 2018!");
            var day1Input = Path.Combine(BaseFolder, "inputD1.txt");


            var p1 = new Puzzle1(day1Input);

            p1.Run();

            var p2 = new Puzzle2(day1Input);

            p2.Run();

            var day2Input = Path.Combine(BaseFolder, "inputD2.txt");
            var dp1       = new Day2.Puzzle1(day2Input);

            dp1.Run();

            var dp2 = new Day2.Puzzle2(day2Input);

            dp2.Run();

            var d3P1 = new Day3.Day3Puzzles("inputD3.txt");

            d3P1.Run();

            var d4p1 = new Day4.PuzzleDay4("inputD4.txt");

            d4p1.Run();
            Console.ReadKey();
        }
        static void Main(string[] args)
        {
            var puzzle1 = new Puzzle1();

            puzzle1.SolvePuzzle();

            var puzzle2 = new Puzzle2();

            puzzle2.SolvePuzzle();
        }
Example #3
0
        static void Main(string[] args)
        {
            Console.WriteLine("Starting Advent Of Code challenge!");
            Console.WriteLine("<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>");

            // Day 1
            var answerDay1Part1 = Puzzle1.SolveFirstPartOfPuzzle();
            var answerDay1Part2 = Puzzle1.SolveSecondPartOfPuzzle();

            // Day 2
            var answerDay2Part1 = Puzzle2.SolveFirstPartOfPuzzle();
            var answerDay2Part2 = Puzzle2.SolveSecondPartOfPuzzle();

            // Day 3
            var answerDay3Part1 = Puzzle3.SolveFirstPartOfPuzzle();
            var answerDay3Part2 = Puzzle3.SolveSecondPartOfPuzzle();

            // Day 4
            var answerDay4Part1 = Puzzle4.SolveFirstPartOfPuzzle();
            var answerDay4Part2 = Puzzle4.SolveSecondPartOfPuzzle();

            // Day 5
            var answerDay5Part1 = Puzzle5.SolveFirstPartOfPuzzle();
            var answerDay5Part2 = Puzzle5.SolveSecondPartOfPuzzle();

            Console.WriteLine($"The answer to Day 1 part 1 puzzle is: {answerDay1Part1.Result}.");
            Console.WriteLine($"The answer to Day 1 part 2 puzzle is: {answerDay1Part2.Result}.");
            Console.WriteLine("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
            Console.WriteLine($"The answer to Day 2 part 1 puzzle is: {answerDay2Part1.Result}.");
            Console.WriteLine($"The answer to Day 2 part 2 puzzle is: {answerDay2Part2.Result}.");
            Console.WriteLine("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
            Console.WriteLine($"The answer to Day 3 part 1 puzzle is: {answerDay3Part1.Result}.");
            Console.WriteLine($"The answer to Day 3 part 2 puzzle is: {answerDay3Part2.Result}.");
            Console.WriteLine("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
            Console.WriteLine($"The answer to Day 4 part 1 puzzle is: {answerDay4Part1.Result}.");
            Console.WriteLine($"The answer to Day 4 part 2 puzzle is: {answerDay4Part2.Result}.");
            Console.WriteLine("<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
            Console.WriteLine($"The answer to Day 5 part 1 puzzle is: {answerDay5Part1.Result}.");
            Console.WriteLine($"The answer to Day 5 part 2 puzzle is: {answerDay5Part2.Result}.");
        }