Professional Documents
Culture Documents
breed[infectat a-infecat]
breed[bolnav a-bolnav]
breed[imun a-imun]
breed[decedat a-decedat]
globals[
total-sanatos
total-bolnav
total-infectat
total-imun
total-decedat]
turtles-own[
incubare
bolnavi
stare-terminala
ctl-imun
ctl-miscare
]
to setup
clear-turtles
setup-agents
update-globals
reset-ticks
end
to go
ctl-bolnavi
update-globals
end
to setup-agents
create-turtles initial-sanatos[
to pozitiv
set ctl-imun random 100
ifelse ctl-imun < sansa-imun
[recuperare]
[ask sanatos-on patch-here[
set breed infectat
set incubare pd-incubare]
ask infectat-on patch-here [set color pink]]
end
to recuperare
set breed imun
set color sky
end
to miscare