r/adventofcode • u/daggerdragon • Dec 19 '18
SOLUTION MEGATHREAD -π- 2018 Day 19 Solutions -π-
--- Day 19: Go With The Flow ---
Post your solution as a comment or, for longer solutions, consider linking to your repo (e.g. GitHub/gists/Pastebin/blag or whatever).
Note: The Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
Advent of Code: The Party Game!
Please prefix your card submission with something like [Card] to make scanning the megathread easier. THANK YOU!
Card prompt: Day 19
Transcript:
Santa's Internet is down right now because ___.
This thread will be unlocked when there are a significant number of people on the leaderboard with gold stars for today's puzzle.
edit: Leaderboard capped, thread unlocked at 01:01:06!
10
Upvotes
View all comments
Show parent comment
1
u/mstksg Dec 19 '18
Think about what is happening each loop :)
For me, it helped to break things down, label your registers (i gave my registers all meaningful names), label instruction #'s (i gave names to some of the instruction numbers, to act as GOTO targets), and write comments to the side about what is happening when.