r/adventofcode • u/HeathRaftery • Dec 19 '22
Visualization [2022 Day 15 (Part 2)] [Julia] Rotate solution space 45° and chop out a square for each sensor.
101
Upvotes
r/adventofcode • u/HeathRaftery • Dec 19 '22
2
u/HeathRaftery Dec 19 '22
For reference, the solution.
2
u/Dynge Dec 19 '22
Can you explain the logic to me?
9
u/PityUpvote Dec 19 '22
The moment the idea came to me to rotate the space 45° and treat it as last year's beacon puzzle was almost orgasmic.
2
u/redditnoob Dec 19 '22
Beautiful visualization! I thought of something like this but never implemented it, i.e. renormalizing the coordinates to a basis (1/2, 1/2), (1/2, -1/2)
0
u/[deleted] Dec 19 '22
[deleted] — view deleted comment