30 likes | 274 Views
Conway’s Game in matlab. Andrew Tholt. Three main structures arise: Stagnant forms Oscillators Moving forms. John Conway Pixels are either “alive” or “dead” Follows basic rules: 1 or 0 neighbors = cell dies 2 or 3 neighbors = cell lives 4 or more = cell dies
E N D
Conway’s Game in matlab Andrew Tholt
Three main structures arise: • Stagnant forms • Oscillators • Moving forms • John Conway • Pixels are either “alive” or “dead” • Follows basic rules: • 1 or 0 neighbors = cell dies • 2 or 3 neighbors = cell lives • 4 or more = cell dies • Dead cell with three neighbors becomes alive • 16,370 cell line • Designate a counting matrix • Every cell counts its 8 neighbors • Apply periodic boundary conditions • Second matrix checks counting matrix and • applies rules • Cellular Automaton • Process of activation/deactivation • Cells have states based on neighbors • Conus genus • Secretes pigments into growing • shell based on CA • Plant stoma transpire in the same • manner
Run with: plot.m Run with: Line.m, Gun.m, Flare.m Run with: Glider.m Run with: Ship.m