advent-of-code
Advent of Code exercises as found on http://adventofcode.com/.
Also provides the binary aoc
for templating out paths and exercises:
$ ./aoc init <language> <year> [max_day]
aoc init
generates directories, exercise templates with language-appropriate headers, and blank input files.
The utility cannot overwrite (it will first
set -o noclobber
as a failsafe).Edit
VALID_LANGS
andEXTENSIONS
as necessary for your desired languages.
$ ./aoc init python 2021
# ...
$ ls python/2021 | wc -l
31
$ ls python/2021/01
01.py input
$ cat python/2021/01/01.py
"""
EXERCISE PROMPT: http://adventofcode.com/2021/day/1
"""