top of page

CELLULA AUTOMATA

CODE

Copenhagen · Autumn 2014 · The Royal Danish Academy of Fine Arts

School of Architecture · Master: CITA Studio · Computation

in architecture · Coding class

Code consisting in a tower that grows itself until floor number 20 and then decrease until it disappear.

 

Rules in cellula automata

#Look up the rule

#Loneliness - less than 2 neighbours -> death

if board[x][y] == 1 and neighbours < 2:

next[x][y] = 0

#Overcroding - active and more than 3 neighbours -> death

elif board[x][y] == 1 and neighbours > 3:

next[x][y] = 0

#Reproduction - not active and more than 3 neighbours -> birth

elif board[x][y] == 0 and neighbours == 3:

next[x][y] = 1

#Stasis - cell stays the same with 2 neighbours

Eduardo de Francisco del Saz Portfolio
bottom of page