what i'm trying figure out how make 1 turtle die when there 2 turtles on 1 patch.
this i've been attempting far:
to deathbytubes if ask patches [show count turtles-here] >= 2 [die] end
how can fix works?
also, can me figure out how make turtle die when comes contact turtle alternative?
this kill turtles if there's more 2 on patch.
ask turtles [count turtles-here >= 2] [ die]
this kill 1 turtle if there's 2 turtles on patch.
ask patches [count turtles-here = 2] [ ask one-of turtles-here[die]]
if there's more 2 turtles, following work. basically, figure out patches have more 2 turtles , ask 1 of turtle's kill else 1 turtle remains.
ask patches [count turtles-here >= 2] [ ask one-of turtles-here [ ask other turtles-here[die]]]
Comments
Post a Comment