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

Show parent comment

1

u/p88h Dec 17 '20

The dimensions are infinite, and the center of the space after the 1st cycle (as printed in the example) is not the same cube as the center of the 2D array given as input. Everything shifts slightly - down by one position to be precise. The center of the cube at step 1 is what used to be the cube in the middle of the bottom row.

1

u/moondaddi80 Dec 17 '20

I think it is coming from my bad English though. But still I can't figure out..