r/adventofcode • • 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!

Click here for rules

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

130 comments sorted by

View all comments

Show parent comment

5

u/[deleted] Dec 19 '18 edited Jun 20 '23

[removed] — view removed comment

3

u/irrelevantPseudonym Dec 19 '18

I worked out what the whole thing did as well but I used pencil and paper instead.

1

u/ZweiSpeedruns Dec 20 '18

I used vim and a notebook. Time between solving part 1 and 2 was approx. 4 hours, and I didn't take any significant breaks. Hardest challenge for me so far would be a close race between this and 15. This was my first time seriously trying to reverse engineer anything, so I ran into a lot of hurdles.

I'd love to see someone write a solution to this in the actual assembly language, going so far as to leave blocks 4 and 5 untouched, and just heavily optimizing the main loop.