r/adventofcode • • Dec 17 '20

SOLUTION MEGATHREAD -🎄- 2020 Day 17 Solutions -🎄-

Advent of Code 2020: Gettin' Crafty With It

  • 5 days remaining until the submission deadline on December 22 at 23:59 EST
  • Full details and rules are in the Submissions Megathread

--- Day 17: Conway Cubes ---


Post your code solution in this megathread.

Reminder: Top-level posts in Solution Megathreads are for code solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:13:16, megathread unlocked!

36 Upvotes

657 comments sorted by

View all comments

2

u/[deleted] Dec 17 '20 edited Dec 17 '20

I am not getting it, or is the example incorrect? How is it possible that the dot at x=1, y=1, z=0 (the central one) becomes Active after the first cycle? I can count 5 hashes around it from the initial iteration: .#. ..#

Specifically (1,0,0) (1,2,0)(2,0,0)(2,1,0)(2,2,0)

1

u/daggerdragon Dec 17 '20

Top-level posts in Solution Megathreads are for code solutions only.

This is a top-level post, so please edit your post and share your code/repo/solution or, if you haven't finished the puzzle yet, you can always create your own thread and make sure to flair it with Help.

1

u/[deleted] Dec 17 '20

The minimum y for any active cell after one cycle is 1, so the diagrams are drawn with the top row being y=1. I.e. the frame of reference has shifted by one cell in the y direction during the first cycle, so the point you're referring to is actually (1, 2, 0), not (1, 1, 0).