Skip to main content

Module aoc

Module aoc 

Source
Expand description

The Advent of Code boundary.

Everything that talks to adventofcode.com goes through AocClient, so the submission logic can be exercised without a network - and so that a run without a session cookie provably cannot make a request, because there is no client to call.

Modules§

cache
Remembering answers that were already accepted.
input
Keeping puzzle inputs for good.
live
The real Advent of Code client.
throttle
Keeping outbound requests to a polite rate.

Enums§

ApiError
Errors produced while talking to Advent of Code.
Hint
Which way a rejected answer was wrong, when the site says.
Verdict
The site’s response to a submitted answer.

Traits§

AocClient
Reads puzzle input and submits answers.