using System.Diagnostics; using Day23; if (args.Any(a => a == "--debug")) { Console.WriteLine("DEBUG"); Console.WriteLine(Debugger.Launch()); } if (args.Length < 1) { Console.WriteLine("Requires 1 args: inputFileName"); return -1; } var inputFile = args[0]; var parser = new Parser(); var map = parser.Parse(inputFile); map.Verify(); map.Print(); map.BuildGraph(); var steps = map.LongestPath(); Console.WriteLine(); Console.WriteLine($"Longest Path: {steps}"); steps = map.LongestPathIgnoreDirection(); Console.WriteLine(); Console.WriteLine($"Longest Path Ignoring Direction: {steps}"); return 0;