This year I decided to solve AdventOfCode using Python before I am going to put myself through the pain of doing it with C++ or Rust next year :)
helpers
contains a default-template for new days and helper-functions. I will probably add more generic functions there, as the days get more difficult.ImportHelpers.getInput()
is my default input-import-function. It reads the day # from the fileName (...#.py
) and returns the content ofinputs.input#.txt
as Stringinputs
contains all inputs in numbered files (input#.txt
).- The
days
are stored in the base-directory asDay#.py
.
The code can be cloned to any folder and be run immediately without any parameters. Each day will print the results to the console.