Skip to content

xhyrom/aoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code

In this repository, you can find all my solutions to the Advent of Code puzzles mostly written in Python.

🌟 What is Advent of Code?

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.

Usage

To use the tools in this repository, follow these steps:

  1. Clone the repository
  2. Setup a virtual environment and install dependencies
python -m venv .env
pip install -r requirements.txt
  1. 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

Commands

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.