Day08 part 1

This commit is contained in:
2018-12-11 21:02:22 +01:00
parent ef84354e66
commit e00c496a95
7 changed files with 184 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ namespace AdventOfCode2018
{
private static void Main(string[] args)
{
int currentDayNumber = 7;
int currentDayNumber = 8;
IDay currentDay = null;
switch (currentDayNumber)
@@ -19,8 +19,9 @@ namespace AdventOfCode2018
case 5: currentDay = new Day05(); break;
case 6: currentDay = new Day06(); break;
case 7: currentDay = new Day07(); break;
case 8: currentDay = new Day08(); break;
}
string[] linesDay = File.ReadAllLines(string.Format("inputs/Day{0:00}.txt", currentDayNumber));
string resultPart1 = currentDay.ResolvePart1(linesDay);
Console.WriteLine("Day{1:00} Result Part1: {0}", resultPart1, currentDayNumber);