Wigglewalk

Wigglewalk preview image

1 collaborator

Default-person Jose Montes (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 5.3.1 • Viewed 260 times • Downloaded 23 times • Run 0 times
Download the 'Wigglewalk' 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 is a program which creates one turtle with its set heading, color, size, and coordinates and creates a circle wall which counts the ticks before it hits the wall)

HOW IT WORKS

(This program works by clicking the setup button which creates the turtle and clears the world. Next you want to click the DrawWall button which creates a circle wall which the turtle created is supposed to run into. Next, depending on which owl experiment you are running you can click the WiggleWalk button or the RandomWalk button and set the required radius and the left and right turn angles.)

HOW TO USE IT

(The setup button clears the world and creates one turtle. The DrawWall button creates a circle wall which the turtle will run into. The radius and left and right turn sliders adjust the degrees the turtles will turn.The WiggleWalk and RandomWalk are used to run the required experiment.)

THINGS TO NOTICE

(suggested things for the user to notice while running the model)

THINGS TO TRY

(suggested things for the user to try to do (move sliders, switches, etc.) with the model)

EXTENDING THE MODEL

(suggested things to add or change in the Code tab to make the model more complicated, detailed, accurate, etc.)

NETLOGO FEATURES

(interesting or unusual features of NetLogo that the model uses, particularly in the Code tab; or where workarounds were needed for missing features)

RELATED MODELS

(models in the NetLogo Models Library and elsewhere which are of related interest)

CREDITS AND REFERENCES

(a reference to the model's URL on the web if it has one, as well as any other necessary credits, citations, and links)

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

globals [ OriginDistance ]      ;; sets the OriginDistance as the global variable

to setup                        ;;creates 1 turtle sets its color,size,heading and resets ticks
  clear-all
  reset-ticks
  create-turtles 1
  ask turtles
  [
    set heading 0
    set color 15
    set size 5
  ]
end 

to DrawWall                            ;; Sets up the circle owl will be running into
  ask turtles
  [
    repeat 360
    [
      forward radius
      pen-down
      forward 5
      pen-up
      setxy 0 0
      set heading (heading + 1)
    ]
  ]
end 

to RandomWalk                               ;; Sets up how the turtle will run the RandomWalk procedure for the owl experiments
  ask turtles
  [
    set heading (random 360)
    pen-down
    forward 1
       set OriginDistance distancexy 0 0
  ]
  if OriginDistance > radius
  [stop]
  tick
end 

to WiggleWalk                               ;; Sets up how the turtle will run the WiggleWalk procedure for the owl experiments
  ask turtles
  [
    pen-down
    right wiggleright
    left wiggleleft
    forward 1
    set OriginDistance distancexy 0 0
  ]
  if OriginDistance > radius
  [stop]
  tick
end 

There is only one version of this model, created over 7 years ago by Jose Montes.

Attached files

File Type Description Last updated
Wigglewalk.png preview Preview for 'Wigglewalk' over 7 years ago, by Jose Montes Download

This model does not have any ancestors.

This model does not have any descendants.