A cellular automaton is a collection of "colored" cells on a grid of specified shape that evolves through a number of discrete time steps according to a set of rules based on the states of neighboring cells. The rules are then applied iteratively for as many time steps as desired.
$ git clone https://github.com/7enTropy7/Cellular_Automata.git
The game is a zero-player game, meaning that its evolution is determined by its initial state, requiring no further input. One interacts with the Game of Life by creating an initial configuration and observing how it evolves. It is Turing complete and can simulate a universal constructor or any other Turing machine.
This repository contains:
- Interactive mode where you can initialize your own population on a grid.
- Randomized population mode.
- 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.
Glider Gun in Interactive Mode:
Randomized Population:
Langton's ant is a two-dimensional universal Turing machine with a very simple set of rules but complex emergent behavior.
- At a white square, turn 90° right, flip the color of the square, move forward one unit.
- At a black square, turn 90° left, flip the color of the square, move forward one unit.
Rule 30 is a Class III rule, displaying aperiodic, chaotic behaviour. This rule is of particular interest because it produces complex, seemingly random patterns from simple, well-defined rules.
Current Pattern | New state for center cell |
---|---|
000 | 0 |
001 | 1 |
010 | 1 |
011 | 1 |
100 | 1 |
101 | 0 |
110 | 0 |
111 | 0 |
This project is licensed under the MIT License - see the LICENSE file for details