Add day 7

This commit is contained in:
2022-12-08 15:51:52 +01:00
parent 489ecc6d8d
commit 5d6835b2e6
3 changed files with 1281 additions and 2 deletions

View File

@@ -16,7 +16,22 @@ var selectedDay = AnsiConsole.Prompt(select);
AnsiConsole.MarkupLine($"[cyan]Running [yellow]{selectedDay}[/]...[/]\n");
AnsiConsole.MarkupLine("[cyan]Part [yellow]1[/] result:[/]");
selectedDay.RunPart1();
try
{
selectedDay.RunPart1();
}
catch (Exception e)
{
AnsiConsole.WriteException(e);
}
AnsiConsole.MarkupLine("\n[cyan]Part [yellow]2[/] result:[/]");
selectedDay.RunPart2();
try
{
selectedDay.RunPart2();
}
catch (Exception e)
{
AnsiConsole.WriteException(e);
}