Discussion thread for day 17 of the Advent of Code : https://adventofcode.com/2020/day/17
Main issue with today was understanding the example... and I refused to do iterative as wanted to debug easier
And the inner macro:
@jdunkerley79 the example was pretty horrid. I think it could have been much more clear without giving too much away.
Here is my solve. I took the iterative route for both parts and it ended up being surprisingly similar to my day 11 solution.
part 1 iterative
part 2 iterative
Day17!
I almost gave up when I couldn't understand the example...It took much time. I agree with @jdunkerley79 on this point.
Today's my solution is Iterative route.
Part1 Iterative Macro
Finally, my challenge worked.
AS anonymous user #1105310
https://github.com/AkimasaKajitani/AdventOfCode
I concur that the example was difficult to understand (at least for me, it took me a while to realize that there were rows/columns disappearing).
I went with an iterative, it required minor changes to incorporate the "w" from the second part.
I wondered if it would be any faster to precompute the whole board since I thought so many generate rows couldn't be that good
I went for slow and simple with an iterative macro. I just computed entire board plus an extra space or 2. Lots of copying and pasting.
Fun one this, mine runs in 0.8s for the whole flow. Two separate macros for 3d and 4d. 😊
50 iterations of part 1 as a gif 🙂
Optimised and golfed, 1 macro with a toggle for 3 or 4 dimensions. Workflow runs in 0.7s but it looks much cleaner now.