r/adventofcode • u/daggerdragon • 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.
- Include what language(s) your solution uses!
- Here's a quick link to /u/topaz2078's
pasteif you need it for longer code blocks. - The full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.
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
View all comments
2
u/moondaddi80 Dec 17 '20
Anybody can help me to understand the example? I've been looking at the example after 1st cycle about an hour, but I totally lost my brain. How come the center of 3x3 cube be Active? It has 5 active among neigbors.
So, I made the 3x3x3 cubes after 1st cycle manually, then I ran my code. It returned the correct answer. I think my code correct after the 1st cycle. But I can't make 3x3x3 cubes with 0 cycle 3x3 initial state.
Can anybody explain to me?