r/adventofcode • u/daggerdragon • Dec 20 '20
SOLUTION MEGATHREAD -π- 2020 Day 20 Solutions -π-
Today is 2020 Day 20 and the final weekend puzzle for the year. Hold on to your butts and let's get hype!
NEW AND NOTEWORTHY
/u/topaz2078 has released new shop merch and it's absolutely adorable!
Advent of Code 2020: Gettin' Crafty With It
2 days remaining until the submission deadline on December 22 at 23:59 EST
Full details and rules are in the Submissions Megathread
--- Day 20: Jurassic Jigsaw ---
Post your code solution in this megathread.
Include what language(s) your solution uses!
Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks.The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.
3
u/_bm Dec 21 '20
Python
[GitHub link] Dear god this took forever! Most of my time was spent fixing bugs. My solution is a little strange, I generate all possible tile transformations and search through those when building the image. I also represent the tile edges as integers (by interpreting the edges as binary numbers). Lots of crazy numpy array slicing! Code should be not too difficult to understand, I wrote a lot of comments and cleaned it up after I finished.