aoc-util.tools
Tools to make Advent of Code work with the repl You can submit, retrieve and read the puzzle
By default it tries to infer the current puzzle to use, from the namespace e.g. se.2020.day2 Year: 2020 Day: 2
Puzzle inputs are stored resources/puzzle/{YEAR}/{DAY}.txt
Inputs are cached and reused as they never change
Puzzle descriptions are stored resources/puzzle/{YEAR}/{DAY}.md
download-description
(download-description)
(download-description ns)
Download puzzle description
get!
(get!)
(get! parser)
(get! ns parser)
(get! year day parser)
defaults to current namespace default parser identity
parse-input
(parse-input s)
(parse-input s parser)
Like get! but for strings, helps to use the examples from the puzzle-description
set-session-cookie!
(set-session-cookie! cookie)
Write your session cookie to the right file, for later use
submit!
(submit! part answer)
(submit! year day part answer)
(submit! puzzle-id part answer)
Takes the namespace {ns}.{year}.day{x}
, which part 1 2 and the answer