Beginners Interactive NetLogo Dictionary
Farsi / Persian
NetLogo Models Library:
This example demonstrates the difference between the
ask-concurrent is not recommended. It is only there for backward compatibility.
Press SETUP to make some turtles.
Then press either of the two buttons that ask the turtles to go forward 5 steps. (Don't leave them both pressed at once.)
At the normal speed, the turtles may move so fast you won't see how the buttons are different. If needed, use the speed slider to slow down the model until you can watch the turtles move one at a time.
The GO button uses
ask-concurrent in a slightly more elaborate way. It shows turtles acting currently even though each turtle is running a
while loop, not just a simple
How do the turtles move with
ask turtles [ fd 5 ] ?
How do they move with
ask-concurrent instead of
For details on
ask-concurrent, read the Ask-Concurrent section of the Programming Guide in the NetLogo User Manual.
The view update mode is set to "continuous" so you can see the agents move one at a time by moving the slider towards "slower".