puzzle2
No preview image
Model was written in NetLogo 4.1.2
•
Viewed 100 times
•
Downloaded 18 times
•
Run 0 times
Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)
WHAT IS IT?
This code example is a demo of a basic random walk. At each step, the yellow turtle changes its heading randomly.
THINGS TO NOTICE
The turtle's pen is down, so it leaves a trail behind it in the drawing.
RELATED MODELS
Random Grid Walk Example - the same except that the random walk is constrained to lie on a grid
Comments and Questions
Please start the discussion about this model!
(You'll first need to log in.)
Click to Run Model
to setup clear-all crt 1 ;; create one turtle [ set color orange set size 2 ;; make it easier to see pen-down ;; have it draw its path ] end to walk1 ask turtles [ rt 360 forward 10] end to walk2 ask turtles [ lt 90 forward 10] end to walk3 ask turtles [ rt 225 forward 14] end
There is only one version of this model, created over 13 years ago by soheir othman.
Attached files
No files
This model does not have any ancestors.
This model does not have any descendants.