feat: wip on day 10 part 2

This commit is contained in:
Stevan Freeborn
2025-12-24 18:13:07 -06:00
parent b1fed493b3
commit a2024af1b4
3 changed files with 72 additions and 0 deletions
+12
View File
@@ -16,3 +16,15 @@ func SolvePartOne(filePath string) int {
return total
}
func SolvePartTwo(filePath string) int {
total := 0
for line := range file.ReadLines(filePath) {
machine := machine.From(line)
buttonsPressed := machine.ConfigureJoltages()
total += buttonsPressed
}
return total
}