These solutions are set up according to the guidelines in https://github.com/wimglenn/advent-of-code-sample
which makes use of the aoc
runner script.
After cloning this repository, install the module:
$ pip install advent-of-code-efung/
(Optional) Update the test data in each day's file. Make sure to use strings for output!
$ export AOC_SESSION=<session cookie from browser session>
$ cd aoc_efung/aoc2020
$ python day1.py
$ export AOC_SESSION=<session cookie from browser session>
$ ipython
The submit
function can infer what day and part to submit, but can also specify explicitly via named params.
from aocd import submit
submit(my_answer, part="a", day=1, year=2020)