Skip to content

Puzzle solutions for Advent of Code 2021 written in Python

Notifications You must be signed in to change notification settings

clauswrm/adventofcode2021

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2021

Puzzle solutions written in Python. Solutions are presented as they were when the answers were submitted, with minor formatting applied.

My goal was to solve the problems as fast as possible, not to write the most efficient solution.

Santa Claus

Solve puzzles

Create a .env file with the content SESSION_COOKIE=<your_aoc_session_cookie>. Your session cookie can be found in your browser.

Run ./src/aoc.sh <day> to create a new puzzle folder with a main.py file containing starter code and data.txt containing the input of the day.

Run solutions

Install dependencies with pip3 install -r "requirements.txt".

Run the solutions with python3 src/<day>/main.py.