I've been reading about the epic Intcode virtual machine puzzles featured in
AoC 2019 for years, and finally decided to give it a go. This time making it a
bit easier for myself and writing everything in Python more challenging
for myself and writing everything in POSIX
awk
(which I have never really used before, believe it or not!).
Also, unlike my two previous participations (2021 and 2025, both in R), I'm working on the 2019 AoC edition much more casually, a few years down the line, instead of rushing through things "in real time". In this day and age, I have zero leetcode aspirations.
- Day 1 - part 1, part 2
- Day 2 - part 1, part 2
(
intcode.awk) - Day 3 - parts 1 and 2
- Day 4 - parts 1 and 2
- Day 5 - parts 1 and 2
(
intcode.awk) - Day 6 - part 1, part 2
- Day 7 - part 1, part 2
(
intcode.awk) - Day 8 - part 1, part 2
- Day 9 - parts 1 and 2
(
intcode.awk) - Day 10 - parts 1 and 2
- Day 11 - parts 1 and 2
(
intcode.awk) - Day 12 - parts 1 and 2
- Day 13 - part 1, part 2
(
intcode.awk) - Day 14 - parts 1 and 2
- Day 15 - parts 1 and 2
(
intcode.awk) - Day 16 - parts 1 and 2
- Day 17 - part 1, part 2,
17_lib.awk(intcode.awk)
To be able to run all the code (particularly, to be able to fetch puzzle inputs
automatically), you should put a file SESSION containing your session cookie
ID in the root of this project. On macOS, you can get it by logging to
adventofcode.com in Safari, and then going to Develop -> Web Inspector
-> Storage -> Cookies and copy pasting the Value content into the
SESSION file. The process in other browsers will be similar.
Alternatively, just place the input file for a given day in the data/
directory with a name such as 01.txt (i.e., the advent day number followed by
suffix .txt).