Day 17 part 2, bash version (and retrofit to part 1)

This commit is contained in:
2021-01-16 18:42:21 +01:00
parent 0ea2309e02
commit 57384c9890
7 changed files with 267 additions and 52 deletions

View File

@@ -145,8 +145,6 @@ After the full six-cycle boot process completes, 112 cubes are left in the activ
Starting with your given initial configuration, simulate six cycles. How many cubes are left in the active state after the sixth cycle?
Your puzzle answer was 263.
The first half of this puzzle is complete! It provides one gold star: *
--- Part Two ---
For some reason, your simulated results don't match what the experimental energy source engineers expected. Apparently, the pocket dimension actually has four spatial dimensions, not three.
@@ -398,8 +396,12 @@ After the full six-cycle boot process completes, 848 cubes are left in the activ
Starting with your given initial configuration, simulate six cycles in a 4-dimensional space. How many cubes are left in the active state after the sixth cycle?
Answer:
Your puzzle answer was 1680.
Although it hasn't changed, you can still get your puzzle input.
Both parts of this puzzle are complete! They provide two gold stars: **
At this point, you should return to your Advent calendar and try another puzzle.
If you still want to see it, you can get your puzzle input.
You can also [Share] this puzzle.