Closed pedro-andrade-inpe closed 6 years ago
@pedro-andrade-inpe, Please, add a code to reproduce that.
singleFooAgent = Agent{
execute = function(self)
if Random{p = 0.05}:sample() then
self:reproduce()
self:die()
end
end
}
soc = Society{
instance = singleFooAgent,
quantity = 100
}
cs = CellularSpace{
xdim = 20
}
e = Environment{cs, soc}
e:createPlacement{max = 5}
m = Map{target = soc}
t = Timer{
Event{action = soc},
Event{action = m}
}
t:run(100)
TerraME crashes when observing a Society of dying agents. Add a test for this.