Based on Conway's Game of Life

Set Canvas:

Which surrounding cells are considered neighbors?
(gray = neighbor, white = not)

Outcome of a dead cell with given # of neighbors:

Outcome of a live cell with given # of neighbors: