Cellular Automata - next nearest neighbrs

The boundary conditions are periodic in both directions: the top row and[br] bottom rows are adjacent as are the left and right columns. [br][br]Choose the rules for when changes from occupied to empty (1 -> 0) or [br]empty to occupied (0 -> 1). The neighbor cells are the eight cells [br]that touch either an edge or a corner of the cell.

Information: Cellular Automata - next nearest neighbrs