r/adventofcode • • 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

113 comments sorted by

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!

13

u/Indivicivet Dec 17 '20

I agree it's easy to miss and get confused by, but it is mentioned: "(and the frame of view follows the active cells in each cycle)"

edit: lots of people (yourself included) were complaining about this here 40mins ago, so maybe the prompt got changed since then?

7

u/trevorsg Dec 17 '20

I'm pretty certain it was just added. I studied every word of the prompt when I was trying to understand the sample data and didn't notice this line.

7

u/pred Dec 17 '20

I still had the page open from the unlock and went ahead and compared; it was indeed added afterwards.

9

u/ywgdana Dec 17 '20 edited Dec 17 '20

Holy fucking shit, is that what's going on?? I've been staring at the example for 20 mins trying to figure out how the top-left corner of z=-1 became activated after 1 cycle!

Ugh this is the first time in 4 years of Advent of Code that I agree with people complaining they've written an actively deceptive problem :/

8

u/Aneurysm9 Dec 17 '20

Be careful ascribing motive to others. Whatever anyone thinks of the description or example, I can guarantee you that nobody involved in the creation of this puzzle was intending to actively deceive anyone.

4

u/ywgdana Dec 17 '20

I think something can be deceptive without a motivation?

Like, the puzzle was deceptive for a bunch of people, even if it was unintentional.

1

u/Aneurysm9 Dec 17 '20

Perhaps that is true. Describing that as "actively deceptive" would not be accurate and would be improperly ascribing a motive. A better description might be that people were deceived by the puzzle. Better yet is that the puzzle did not proactively address a possible misconception or faulty assumption.

1

u/[deleted] Dec 17 '20

I've also been staring at the sample case for a while in confusion but I definitely wouldn't accuse anyone of active deception.