Don't call methods in constructor for Day1
This commit is contained in:
parent
8ccd370cf5
commit
f739f27d69
@ -10,9 +10,6 @@ namespace AdventOfCode2022.Handlers
|
||||
var lines = System.IO.File.ReadAllText(@"./days/01/input");
|
||||
elves = lines.Split("\n\n");
|
||||
caloriesPerElf = elves.Select(ParseCalories);
|
||||
|
||||
PartA();
|
||||
PartB();
|
||||
}
|
||||
|
||||
private int ParseCalories(string elf)
|
||||
|
@ -19,7 +19,10 @@ namespace AdventOfCode2022
|
||||
}
|
||||
|
||||
static void dayOne() {
|
||||
new Day01();
|
||||
var day = new Day01();
|
||||
day.PartA();
|
||||
day.PartB();
|
||||
|
||||
PrintSeparator();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user