This is a Game of Life implemented by Pico-8.

- Press
**X**to change a cell to live or dead - Press
**C**to start evoluation.

The evlove follows four rules listed below:

- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

Some specific pattern will cause something interesting.For example:

This pattern will keep moving and can always keep the original form.

You can see more detils for game of life in LifeWiki

Let's give it a try.

If you are interested about the game or "cellular automaton", you can see my another project cellular automaton

Thanks for your attention!

This is a Cellular Automaton implemented by Pico-8.

Each cell has **3 states, empty, blue or red**, is encoded as 0,1,2.

Everything with three states can be simply simulated by this simulator.

You can think of it as the three states of a tree, dead, normal, or burning.

Of course,it can also be interpreted as human death, healthy or illness.

The probability of each cell state transition is related to the state of surrounding cells. The more surrounding red cells, the higher the probability that the cells will turn red. The more blue cells around you, the higher the chance that the cell will turn blue.

**press x to change a cell from state 1 to 2, or press z to change a cell from state 2 to 1.**

The state transition probabilities are written in the function _init(), Where p01 represents the probability of transition from state 0 to state 1.

You can try to modify it and observe the evolution results.

Each time _update () is executed, it will perform state transition on each cell according to the transition probability.

Since _update() runs thirty times per second, so the state transition probability per second is approximately equal to 30*p.

This is my first pico-8 project, thank you for your attention.