Michele1.nlogo

No preview image

1 collaborator

Default-person Michele Doyle (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.2.2 • Viewed 52 times • Downloaded 4 times • Run 0 times
Download the 'Michele1.nlogo' modelDownload this modelEmbed this model

Do you have questions or comments about this model? Ask them here! (You'll first need to log in.)


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 100  
[ setxy random-xcor random-ycor
  set color blue
  ]
  create-turtles 1
  [ setxy random-xcor random-ycor
    set color red
  ]
  
  reset-ticks
end 

to go
  ask turtles      
   [
     wiggle 
     if (count turtles-here with [color = red] > 0)
     [ set color red ]
  ]
tick
 
 if all? turtles 
          [ color = red ]
  [ stop ]   
end 

to wiggle
    right random wiggle-angle
    left random wiggle-angle
    forward 1
end 

There is only one version of this model, created over 1 year ago by Michele Doyle.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.