r/adventofcode • u/SinisterMJ • Dec 17 '20
Help - SOLVED! [2020 Day 17 (Part 1)] Sample input wrong?
Before any cycles:
z=0
.#.
..#
###
After 1 cycle:
z=-1
#..
..#
.#.
z=0
#.#
.##
.#.
z=1
#..
..#
.#.Why isn't generation 1 cycle already a 5x5x3 system? Why is in z=-1 the top left active? It only has 1 active neighbour (top row middle in z=0)? I don't understand the sample input already how that works.
143
Upvotes
View all comments
38
u/BasuKun Dec 17 '20 edited Dec 17 '20
Thank god I'm not the only one looking at the example and thinking that all of it is wrong. For example, why is the middle cube on z0 activating at cycle 1? At cycle 0 it's clearly got 5 active neighbors, so according to the rules it should stay inactive...
Edit: ah ok they're shifting the grid around each cycle to remove fully inactive lines. That's a pretty bad way of displaying the example imo, changing axis without mentioning it is a big no-no, but carrying on. Now I can at least proceed to the coding part!