Neighbourhood

From LifeWiki
Jump to navigation Jump to search
Further information: Cellular automaton#Common dimensions and neighborhoods

A neighbourhood is the set of nearby cells that are considered by a given rule when determining a cell's next state.

Conway's Game of Life utilizes the Moore neighbourhood, which consists of the eight cells that are either orthogonally or diagonally adjacent to the center cell. Other cellular automata on a square grid use the von Neumann neighbourhood, which consists only of orthogonal neighbours. Larger than Life and higher-range outer-totalistic rules feature neighbourhoods with higher ranges - i.e. they include cells located further away from the center. Finally, alternative grid tilings, such as hexagonal and triangular, feature their own neighbourhoods which may or may not correspond to equivalent square grid neighbourhoods.

x=1, y = 1, rule = R1,C0,S,B1,NN o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 16 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]
von Neumann neighbourhood
x=1, y = 1, rule = R1,C0,S,B1,NH o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 16 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]
Hexagonal neighbourhood
x=1, y = 1, rule = R1,C0,S,B1,NM o! #C [[ GRID GRIDMAJOR 0 STARTFROM 1 NOREPORT NOGUI ZOOM 16 WIDTH 100 HEIGHT 100 ]] #C [[ COLOR GRID 192 192 192 COLOR BACKGROUND 255 255 255 COLOR ALIVE 192 192 239 COLOR DEAD 0 0 0 ]]
Moore neighbourhood
Representation of the hexagonal neighbourhood on the square tessellation.

Identical cases

For the systematic neighbourhoods implemented in Golly and LifeViewer, the following cases are identical:

  • Range 1 cross, von Neumann, Euclidean and checkerboard
  • Range 1 Moore, circular, hash and star
  • Range 2 von Neumann and Euclidean
  • Range 1 hexagonal and asterisk

See also

External links