Test

Test preview image

1 collaborator

Default-person Connor Bain (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.1.2-beta1 • Viewed 245 times • Downloaded 21 times • Run 0 times
Download the 'Test' modelDownload this modelEmbed this model

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
  create-turtles 1                         ; create one turtle
  [
    set color yellow
    pen-down
  ]
  reset-ticks
end 

to go
  ask turtles [
    rt random 360               ; set random heading
    forward 1                   ; advance one step
  ]
  tick
end 


; Public Domain:
; To the extent possible under law, Uri Wilensky has waived all
; copyright and related or neighboring rights to this model.

There is only one version of this model, created almost 5 years ago by Connor Bain.

Attached files

File Type Description Last updated
Test.png preview Preview for 'Test' almost 5 years ago, by Connor Bain Download

This model does not have any ancestors.

This model does not have any descendants.