Jonathan Kolberg
12/10/2022, 2:48 AMabstract class AdventDay(input) { abstract fun test(input: Something): Int }
so that Something is either List<String> or Sequence<String> or String? And you can decide in the implementation which one you choose?Kevin Del Castillo
12/10/2022, 3:06 AMInputProvider
that receives a name of a file, and then has a function for each type of output you'd like to receive, that's what I'd doJonathan Kolberg
12/10/2022, 3:31 AMmaiatoday
12/10/2022, 6:55 AMmcbeelen
12/10/2022, 2:44 PMAdventOfCodePuzzle
for that.
Also capable of loading the input from a file named input
from the same packages. (And I have script, which downloads my input to such a file)
Feel free to look at:
https://github.com/mcbeelen/aoc/blob/%F0%9F%8C%B1/util/src/main/kotlin/util/puzzle/AdventOfCodePuzzle.kt