Reputation: 51
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
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