Skip to content

7enTropy7/Cellular_Automata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

forthebadge forthebadge

LinkedIn-profile License GitHub stars

Cellular_Automata

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.

Cloning Instruction

$ git clone https://github.com/7enTropy7/Cellular_Automata.git

Game of Life

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.

Rules

  • 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.

Output

Glider Gun in Interactive Mode:

ezgif com-video-to-gif (9)

Randomized Population:

gol-2020-03-28_02 56 04



Langton's Ant

Langton's ant is a two-dimensional universal Turing machine with a very simple set of rules but complex emergent behavior.

Rules

  • 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.

Output

Langton



Rule-30

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.

Rule set

Current Pattern New state for center cell
000 0
001 1
010 1
011 1
100 1
101 0
110 0
111 0

Output

r30


Author

LinkedIn-profile Awesome

License

License

This project is licensed under the MIT License - see the LICENSE file for details

About

A couple of badass abstract computational systems

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published