AdventOfCode Python Helpers
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


My solutions for the advent of code 2017.

Includes a set of utility functions ( to allow fetching personalised Advent of Code input data, running collections of code snippets and scoring based on brevity of code.


from aoc import aoccollection

puzzles = aoccollection("sessiontoken")

def mysolution(x):
  return len(x)

puzzles.add_puzzle(day=1, puzzle=mysolution)


Session token is the token in your session cookie from Can be given either as a string or as a path to a file containing the string. The token is most easily collected using the developer tools in chromium or firefox. N.B Keep it secret, keep it safe, it lets anyone pretend to be you.