Advent of Code 2020 - Day 17

0 Просмотры
Издатель
Placed 6/15. Code:

Lost some time in part2 because my bounding box was too big; not sure if there was a cleaner way to handle that. Maybe iterate over the neighbors of all the live cells first to see which cells to check? My original 15x15x15x15 bounding box ran in 15s, so probably I should have just let it finish.

In 2D, these rules are the famous Here's a viewer for some interesting "programs" people have found in Life: I'm not sure if the same rich behavior is there in 3D or 4D.
Категория
Боевики
Комментариев нет.