Smiley 9-16-15
Model was written in NetLogo 5.2.0
•
Viewed 255 times
•
Downloaded 34 times
•
Run 0 times
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 ;; to make setup work clear-all ;;clear everytoing when resetting ask patches [set pcolor white];;make patches white ask patches with [pxcor > 8 and pycor < -8] [ ;;ask patches in that area set pcolor blue];;set color to blue ask patches with [pxcor < -8 and pycor > 8] [;; ask patches in that area set pcolor red] ;;set color to red create-turtles 6 [ ;;make 6 turtles in the start set shape "face happy" ;;turtles are faces set color yellow ;;make turtles yellow setxy random-xcor random-ycor ;;plot them randomly among the view set size 3];; the turtles are size 3 end ;;done with that to go ;;to use go button ask turtles [ ;;ask moving objects right random 360 ;;go right randomly in every direction forward 1] ;; makes it progress ask turtles with [pcolor = blue][ ;;ask turtles that go into the blue patches hatch 1 [ ;;make 1 more turtle set color brown;;make the new one brown set size 4 ;;make it size 4 setxy -9 9] ;;where the turtles disappear at setxy 9 9 ;;where they reappear ] end ;;done with go
There is only one version of this model, created almost 10 years ago by Alfonso Villalobos.
Attached files
File | Type | Description | Last updated | |
---|---|---|---|---|
Smiley 9-16-15.png | preview | Preview for 'Smiley 9-16-15' | almost 10 years ago, by Alfonso Villalobos | Download |
This model does not have any ancestors.
This model does not have any descendants.