Discussion thread for day 20 of the Advent of Code : https://adventofcode.com/2020/day/20
I really enjoyed Part 1 today. Part 2 is going to take a little longer though..... 🐍
Part 1 solution:
Like @Steph_Maddrell solved part 1 quickly. Part 2 I can get sample to work but something in my vast workflow doesn't work for it....
As it stands...
- Works out all the joins between tiles
- Works out all 8 versions of each tile
- Builds the grid layout (correct for sample at least)
- Creates the big jigsaw puzzle
That was a slog (not winning tool golf...) to get a solution out - Part 2 below:
Part I was accessible...
Part II... still working on it. It works for the sample dataset. But somewhere with my main dataset it breaks. I suspect it's the tiling of the main puzzle, but who knows. Right now I have a massive workflow with 9 macros that fails to retrieve the answer...
Finally!
It's not pretty, but works (with some caveats)...
I spent way more time than I should have in this. Anything that involves having some type of "spatial vision" or rotating things in my mind I'm clueless.
My thought process on this one:
I also built more macros than I care...😅
