Log In  
Follow
Apretrue
Follow

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:

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. 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.

Cart #moworuzko-0 | 2020-03-16 | Code ▽ | Embed ▽ | No License
1

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

Thanks for your attention!

P#73979 2020-03-16 11:09 ( Edited 2020-03-16 11:13)

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.

Cart #celluar_automata-4 | 2020-03-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
3

P#73968 2020-03-16 02:52 ( Edited 2020-03-18 02:32)

Follow Lexaloffle:        
Generated 2020-10-27 03:38 | 0.102s | 2097k | Q:40