46
SOLUTION MEGATHREAD-🎄- 2020 Day 12 Solutions -🎄-(self.adventofcode)
submitted 5 years, 1 month ago* (edited 11 minutes after) by daggerdragon to /r/adventofcode (134.8k)
NEW AND NOTEWORTHY
- NEW RULE: If your
Visualizationcontains rapidly-flashing animations ...
since 5 years, 1 month ago
3 of 3
Tip Reveddit Real-Time can notify you when your content is removed.
your account history
Tip Check if your account has any removed comments.
view my removed comments you are viewing a single comment's thread.
view all comments


Learning PHP, both solutions here.
The waypoint moving direction in part 2 looked way harder than it actually was! Turned out to be fairly simple after all
Here's my PHP solution, kept it nice and simple, no need for regular expressions and other complicated crap : https://github.com/mariush-github/adventofcode2020/blob/main/day12.php
Well, regexes have always come more natural to me, though in this case it could have been done in many ways, yes. I love how you did the turning though! Much easier to read than mine for sure.