Skip to content

Solutions to the advent of code

License

Notifications You must be signed in to change notification settings

Sebaestschjin/advent-of-code

Repository files navigation

Run Python Tests

My solutions to advent of code. Written in Python. Some newer solutions require Python 3.9+. Most other stuff should work with 3.6+.

Progress

Year Stars
2021 2021
2020 2020
2019 2019
2018 2018
2017 2017
2016 2016
2015 2015

Goals

  • use test-driven development
  • write readable and clean code
  • try to reuse code
  • complete all challenges

Usage

Create files for a new day

Run the script scripts/create.py with the year and day as parameters. This will create a new directory for this day and copy all files from the template directory. Template files (ending with .mustache) wil be rendered and then saved. The input file will be automatically loaded and written to the file in. This requires that the AOC Session-Token is available on the system (more information on [https://pypi.org/project/advent-of-code-data/]).

Run the solution for a given day

Run the script scripts/run.py with the year and day as parameters.