This repo contains my solutions for Advent of Code.
You can copy the scripts to yourself and use it.
Create a virtualenv:
Note: This is optional but to make
flake8
andblack
work, it needs to be done. If you installed those globally then there is no need for this.
python -m venv venv
venv/bin/pip install --upgrade pip
venv/bin/pip install -r requirements.txt
./aoc.py -c <year> <day>
Example:
./aoc.py -c 2023 1
Creates 3 files in the <year>/<day>
folder.
challenge.txt
: Copy/Paste the puzzle text parts in this file to easy access.input.txt
: The input text that is given to you for that day.solution.py
: The Python file to solve the puzzle. Automatically reads theinput.txt
file.
./aoc.py -r <year> <day>
Example:
./aoc.py -r 2023 1