Add day 7
This commit is contained in:
19
Program.cs
19
Program.cs
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user