In: Biology
Implement the cellular automatas known as Brian’s Brain and Seeds, both developed by Brian Silverman.
Brian's Brain consists of an infinite two-dimensional grid of cells, but unlike Seeds, each cell may be in one of three states: on, dying, or off. Each cell is considered to have eight neighbors (the Moore neighborhood), as in Seeds and Conway's Game of Life.
Because of the cellular automaton's name, some websites compare the automaton to a brain and each of its cells to a neuron, which can be in three different states: ready (off), firing (on), and refractory (dying). Almost every pattern in Brian's Brain is a spaceship because the "dying state" cells tend to lead to directional movement. Many Brian's Brain patterns will explode messily and chaotically, and often will result in or contain great diagonal waves of on and dying cells. For example, a 2×2 block of on cells will result in an ever-expanding diamond consisting of four diagonal waves that move across the plane at the pattern's speed of light.
please do like the answer