How to make turtles in netlogo die

对着背影说爱祢 提交于 2019-12-10 19:40:32

问题


I'm having trouble in making the turtles die. Is it possible to make the turtles die after certain ticks? If yes, how do you do you do it? Please help!

Thanks,


回答1:


Yes, this is the code if you want all the turtles to die after 100 ticks. if ticks > 100 [ ask turtles [ die ] ]. Of course, if all the turtles die, you probably want the simulation to stop instead.



来源:https://stackoverflow.com/questions/28516463/how-to-make-turtles-in-netlogo-die

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!