What counts as a "Neighbor" in Conways' game of life?

3.5k Views Asked by At

I have looked everywhere but I cannot find an answer for this.

Since I am bored, I am trying to create this game, but I can't seem to figure out what is considered a "Neighbor". Is it only directly above/below/right/left? or is it above, above and to the right, right, below and to the right, etc.?

1

There are 1 best solutions below

0
On BEST ANSWER

Conway's Game of Life uses the 8-cell Moore neighborhood, which includes the diagonal neighbors. Not all CAs use this; others use the 4-cell Von Neumann neighborhood, which excludes diagonal neighbors.