Communication-T-P Example

Communication-T-P Example preview image

1 collaborator

Uri_dolphin3 Uri Wilensky (Author)

Tags

code example 

Tagged by Reuven M. Lerner almost 12 years ago

patches 

Tagged by Reuven M. Lerner over 11 years ago

Model group CCL | Visible to everyone | Changeable by group members (CCL)
Model was written in NetLogo 5.0.4 • Viewed 710 times • Downloaded 98 times • Run 0 times
Download the 'Communication-T-P Example' 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

Click to Run Model

to setup
  clear-all
  crt 20 [
    ;; color half the turtles red,
    ;; the other half yellow
    set color one-of [yellow red]
    setxy random-xcor random-ycor
  ]
  ask patches [
    set pcolor green      ;; color the patches green
  ]
  reset-ticks
end 

to go
  ask turtles [
    rt random 90
    lt random 90
    fd 1
    ;; if you're a red turtle, turn your patch black
    if color = red
      [ set pcolor black ]
    ;; if you're a yellow turtle, turn your patch magenta
    if color = yellow
      [ set pcolor magenta ]
  ]
  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 are 10 versions of this model.

Uploaded by When Description Download
Uri Wilensky over 11 years ago Updated to NetLogo 5.0.4 Download this version
Uri Wilensky about 12 years ago Updated version tag Download this version
Uri Wilensky almost 13 years ago Updated to NetLogo 5.0 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Updated from NetLogo 4.1 Download this version
Uri Wilensky over 14 years ago Model from NetLogo distribution Download this version
Uri Wilensky over 14 years ago Communication-T-P Example Download this version
Uri Wilensky over 14 years ago Communication-T-P Example Download this version

Attached files

File Type Description Last updated
Communication-T-P Example.png preview Preview for 'Communication-T-P Example' over 11 years ago, by Uri Wilensky Download

This model does not have any ancestors.

This model does not have any descendants.