Skip to content

Python implementation of cellular automaton with Tkinter GUI.

Notifications You must be signed in to change notification settings

mageirakos/elementary-cellular-automaton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

elementary-cellular-automaton

Used Tkinter and webbrowser libraries with Python in order to implement the simle elementary cellular automaton explained in the following sources:
http://mathworld.wolfram.com/ElementaryCellularAutomaton.html
https://natureofcode.com/book/chapter-7-cellular-automata/

About

Cellular automata are models used to simulate and study social self organization.
Examples of self-organization include crystallization, how people live in a city, animal swarming, neural circuits, and artificial neural networks.

A cellular automaton consists of a regular grid of cells, each in one of a finite number of states, such as on and off.
The grid can be in any finite number of dimensions. For each cell, a set of cells called its neighborhood is defined relative to the specified cell. An initial state (time t = 0) is selected by assigning a state for each cell. A new generation is created (advancing t by 1), according to some fixed rule that determines the new state of each cell in terms of the current state of the cell and the states of the cells in its neighborhood.
The simplest one is the elementary cellular automaton.

Version 1.0

  • used Tkinter to implement the GUI

gui example

  • used webbrowser to learn the library and implement a couple of links to interesting sources
  • all 255 rules simulated correctly
  • made sure to not have any errors occur through the use of python exceptions
  • all 4 classes of cellular automata can be seen in the different rules of my implementation

Class 1 showing Uniformity

class 1

Class 2 showing Repetition

class 2

Class 3 showing Instability

class 3

Class 4 showing Complexity

class 4

About

Python implementation of cellular automaton with Tkinter GUI.

Topics

Resources

Stars

Watchers

Forks

Languages