backspaces / agentscript

An Agent Based Modeling system (ABM)
http://backspaces.github.io/agentscript/
GNU General Public License v3.0
107 stars 14 forks source link

Ask all Turtles to die can't remove all turtle agent from agentset #2

Closed bing-hsu closed 6 years ago

bing-hsu commented 6 years ago

First of all. Thank you for making this web-based netlogo. I really enjoy combining the expressive modeling experience of NL semantics and the powerful javascript and web ecosystem.

The issue:

let m = new AS.Model();
m.turtles.create(100, (t) => t.setxy(0, 0));
m.turtles.ask((t) => t.die());

Not all turtles will be dead. It will often kill half of the turtles.