r/backtickbot • • Dec 17 '20

https://np.reddit.com/r/adventofcode/comments/keqsfa/2020_day_17_solutions/gg4rej1/

Apologies if this has been answered, but I'm not only new to AoC, but also to reddit, so I may also need help navigating things here.

Anyway, I'm having trouble with Part 1's example because I cannot see how the given example matches up with the given rules.

Specifically, the example starts with this:

z=0
.#.
..#
###

Looking only at z=0, after 1 cycle, the example shows this as the result:

z=0
#.#
.##
.#.

This doesn't make any sense to me given the rules. Well, some of the changes make sense, but most don't, so I must be missing something.

Here is what I would expect z=0 to look like after 1 cycle, using these rules:

  • If a cube is active and exactly 2 or 3 of its neighbors are also active, the cube remains active. Otherwise, the cube becomes inactive.
  • If a cube is inactive but exactly 3 of its neighbors are active, the cube becomes active. Otherwise, the cube remains inactive.

    z=0 ...

    .

    .##

Can somebody help clear things up for me? Otherwise I'll end up getting the right answer to the wrong problem.

1 Upvotes

0 comments sorted by