Beispiel #1
0
        public static void ExecuteStarOne(string fileLocation = "PuzzleInput/Day6.txt")
        {
            string[] lines = File.ReadAllLines(fileLocation);

            var objectMap = new UniversalOrbitMap(lines);

            Logger.LogMessage(LogLevel.ANSWER, "6A: Total Orbits: " + objectMap.GetTotalOrbits());
        }
Beispiel #2
0
        public static void ExecuteStarTwo(string fileLocation = "PuzzleInput/Day6.txt")
        {
            string[] lines = File.ReadAllLines(fileLocation);

            var objectMap = new UniversalOrbitMap(lines);

            Logger.LogMessage(LogLevel.ANSWER, "6A: Shortest Path: " + objectMap.OrbitTransfersRequired("YOU", "SAN"));
        }