Skip to content

Latest commit

 

History

History

cellular-automata

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Cellular Automaton

Learning Generations Grid

How to process a grid for amount of generations.

The demo has 2 generations and the following grids.

Starting Grid: [0, 0, 1, 0, 0, 0]
Generation 01: [0, 1, 0, 1, 0, 0]
Generation 02: [1, 0, 0, 0, 1, 0]
Final Grid   : [1, 0, 0, 0, 1, 0]

Build

  • Load the main.m file and run it.
  • You should see the following information:
>> main
Running scripts...
Cellular Automaton with 2 generations and starting grid (size: 6) of:
     0     0     1     0     0     0

Generation 1:
     0     1     0     1     0     0

Generation 2:
     1     0     0     0     1     0

Final result:
     1     0     0     0     1     0

Game of Life