feat: ugh...this shouldn't be that hard

This commit is contained in:
Stevan Freeborn
2025-12-02 07:18:38 -06:00
parent e7c180de4b
commit d61a630607
5 changed files with 111 additions and 4 deletions
+16
View File
@@ -26,3 +26,19 @@ func SolvePartOne(filePath string) int {
return total
}
func SolvePartTwo(filePath string) int {
lines := file.ReadLines(filePath)
dial := dial.New()
for _, line := range lines {
if line == "" {
continue
}
instruction := instruction.FromLine(line)
dial.Turn(instruction)
}
return dial.ZeroCount()
}