Advent of Code Solutions
An annual programming puzzles event in December
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
About The Project
This repository contains my completed and functional python solutions to each year's Advent of Code challenges starting from 2021.
Cheating
This repository is not intended to promote or otherwise encourage cheating on any of these sites. You should always try to complete a challenge on your own before viewing the solutions in this repository.
Installation
The first step will be to clone the repo
git clone https://github.com/rmenai/advent-of-code.git
The requirements are:
- Install the dependencies
poetry install
Environment Variables
To run this project, you will need to add the following environment variables to your .env file.
Variable | Description | Default |
---|---|---|
AOC_SESSION | Your aoc cookie session | * Required |
DEBUG | Toggles debug mode | False |
Usage
Now you are done! You can run the project using
poetry run task start [-h] [-p {1,2}] puzzle
positional arguments:
puzzle choose a specific challenge [year].[day]
optional arguments:
-h, --help show this help message and exit
-p {1,2}, --part {1,2} run a specific part of the puzzle
ex. python -m aoc 2021.01 -p 2 (Part 2 of the first day of aoc 2021)
License
Distributed under the MIT License. See LICENSE for more information.