hello77
hello77

Reputation: 51

How to make turtles in netlogo die

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,

Upvotes: 3

Views: 358

Answers (1)

JenB
JenB

Reputation: 17678

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.

Upvotes: 3

Related Questions