This repo contains my solutions to the advent of code problems.
- A
bash
orzsh
terminal - Python 3.5 or newer
- Chrome or Firefox
- Run
./setup.sh $(date +%Y)
script to create the directory for the current year. - In the terminal navigate to the directory you just created (e.g.
cd $(date +%Y)
). - Activate the venv by running
source ${HOME}/.virtualenvs/${PWD##*/}/bin/activate
. - Sign in on the advent of code website in either Chrome or Firefox
- Save your authentication token by running
aocd-token > ~/.config/aocd/token
. - Run
./get_data.sh
to get all the available inputs for your current directory.
If you sign out of Advent of Code your token will no longer be valid. Rerun steps 4 and 5 of the setup to refresh your token.
Delete the incorrect input file and re-run ./get_data.sh