Skip to content

Advent of Code Challenges from 2022 onward. 2019-2021 solutions/attempts exist in separate repos.

Notifications You must be signed in to change notification settings

ryansdowning/advent-of-code

Repository files navigation

Advent of Code

My attempts at advent of code over the years (not including 2019-2021 which are in independent repos).

Prerequisites

  • Get your advent of code session key from cookies and set it as an environment variable.
$ export AOC_SESSION=YOUR_TOKEN_HERE

Run Day Solution

To test and submit python solutions run

$ uv run python -m [YYYY].python.day[dd]

Where [YYYY] is the 4 digit year and [dd] is the 2 digit day of month of the challenge

Performance Runner

To test all python solutions with performance tests, run

$ uv run python -m pyutils.runner

Optionally provide -y and -d to specify the year and list of days to run performance tests for.

Starter Template

If you are using this repo as a template, the start_day.py file provides a quick way to get started for a given day's challenges, i.e:

$ uv run python -m pyutils.start_day -y 2021 -d 1

Will download the inputs for day 1 of 2021 and create a day01.py file in 2021/python/ with a template to get started!

About

Advent of Code Challenges from 2022 onward. 2019-2021 solutions/attempts exist in separate repos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages