Add day 1
This commit is contained in:
@@ -5,7 +5,8 @@ public abstract class Day
|
||||
public abstract int Number { get; }
|
||||
public abstract string Name { get; }
|
||||
|
||||
public abstract void Run();
|
||||
public abstract void RunPart1();
|
||||
public abstract void RunPart2();
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
|
||||
2298
Days/Day1.cs
2298
Days/Day1.cs
File diff suppressed because it is too large
Load Diff
@@ -7,7 +7,12 @@ public class Day2 : Day
|
||||
public override int Number { get; } = 2;
|
||||
public override string Name { get; } = "Second day";
|
||||
|
||||
public override void Run()
|
||||
public override void RunPart1()
|
||||
{
|
||||
AnsiConsole.WriteLine("Day 2 result");
|
||||
}
|
||||
|
||||
public override void RunPart2()
|
||||
{
|
||||
AnsiConsole.WriteLine("Day 2 result");
|
||||
}
|
||||
|
||||
@@ -15,4 +15,8 @@ var selectedDay = AnsiConsole.Prompt(select);
|
||||
|
||||
AnsiConsole.MarkupLine($"[cyan]Running [yellow]{selectedDay}[/]...[/]\n");
|
||||
|
||||
selectedDay.Run();
|
||||
AnsiConsole.MarkupLine("[cyan]Part [yellow]1[/] result:[/]");
|
||||
selectedDay.RunPart1();
|
||||
|
||||
AnsiConsole.MarkupLine("\n[cyan]Part [yellow]2[/] result:[/]");
|
||||
selectedDay.RunPart2();
|
||||
Reference in New Issue
Block a user