mirror of
https://github.com/thib8956/advent-of-code.git
synced 2026-02-27 10:48:14 +00:00
39 lines
648 B
Markdown
39 lines
648 B
Markdown
# Advent of code
|
|
|
|
My solutions to the [advent of code](https://adventofcode.com/) 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):
|
|
|
|
```shell
|
|
$ pip install -e .
|
|
```
|
|
|
|
### Run a single day
|
|
|
|
```shell
|
|
$ aoc <year> <day>
|
|
```
|
|
|
|
### Run a whole year
|
|
|
|
```shell
|
|
$ aoc <year>
|
|
```
|
|
|