Expand description

Conway’s Game of Life, with a minor twist.

All data structures are naive, and day20::enhance is really the interesting piece of this day.

Constants

Number of bits for the algorithm

Width and heigh of the image

Functions

Enhance the image over the given number of iterations by implementing a slightly modified Conway’s Game of Life, where the abnormal thing we need to think about is whether our infinite background will flip each step.

Fairly obvious parsing implementation.

enhance the image by two steps.

enhance the image by fifty steps.

Type Definitions

Represent the image as a 2D array of booleans.