In this repository, you can find all my solutions to the Advent of Code puzzles mostly written in Python.
Advent of Code is an annual coding event featuring 25 programming puzzles, one for each day from December 1st to December 25th. These puzzles can be solved in any programming language, offering a fun and engaging way to test your skills and learn new concepts during the holiday season.
To use the tools in this repository, follow these steps:
- Clone the repository
- Setup a virtual environment and install dependencies
python -m venv .env
pip install -r requirements.txt
- Create a
.env
file in the root of the repository with your session token
echo "AOC_SESSION=<your session token>" > .env
Replace <your session token>
with your session token from the Advent of Code website.
After that, you can use the provided tool to set up the folder and input file for a new day:
./jolt
To run the tests for current day, use:
./jolt run
The tool jolt
provides the following commands:
Usage: [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
bench Benchmark solution(s) for specified day(s) and year(s).
calendar Prints the calendar for the specified year.
puzzle Create a new puzzle solution template.
run Run solution(s) for specified day and year.