Skip to content

albertosantagostino/AoC-2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2023 🎄

Day 1 2 📃 ⏲️ Day 1 2 📃 ⏲️
01 day01.py 🟢🟢 14
02 day02.py 🟢🟢 15
03 16
04 day04.py 🟢🟢 17
05 day05.py 🟢 18
06 day06.py 🟡🟡 19
07 day07.py 🟢🟢 20
08 21
09 22
10 23
11 24
12 25
13

🟢 < 1 day | 🟡 1÷7 days | 🟠 = 7+ days

🎵 On the Nth day of Christmas, my true love sent to me 🎶

  1. A meme from 2015
  2. A tavern game from a DnD setting
  3. An elf with scratchcards addiction
  4. A race condition pun?
  5. Yet another elf addicted to gambling

Only added when both parts are completed

Suggested Christmas songs 🔔

How to run

Python 3.9 and poetry required. From the root folder:

# Prepare virtualenv (will be placed at .venv/). Only needed the first time
poetry install
# Activate the virtualenv
source .venv/bin/activate
# Run the solution
python3.9 src/day__.py

The script src/day00_template.py is a template
Scripts are configured to automatically download puzzle inputs

Setup (automatic puzzle input download)

To get and set your credentials: login into AoC, open the Web Developer Tools (CTRL+SHIFT+I). Go to the Storage tab (or Application/Storage in Chrome) and copy the value of your session cookie into the aoc_cookie entry of config.json

Security note: do not commit the config.json file as it contains your personal cookie. Run git update-index --assume-unchanged config.json to prevent git from tracking the file