Files
advent-of-code/README.md

648 B

Advent of code

My solutions to the advent of code challenges, written in python

How to run

Setup

To use, you need a session token from Advent of Code:

  1. Log in at https://adventofcode.com
  2. Copy your session cookie (check browser dev tools)
  3. Either:
    • Set AOC_SESSION environment variable, or
    • Create a .env file in project root with: AOC_SESSION=your_token

Install project

Run make install or

Run from root directory (inside a virtualenv):

$ pip install -e .

Run a single day

$ aoc <year> <day>

Run a whole year

$ aoc <year>