MIHS-18 Period 5 Paul N, Tony C

MIHS-18 Period 5 Paul N, Tony C preview image

1 collaborator

Default-person Tony Coluccio (Author)

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by everyone
Model was written in NetLogo 6.0.2 • Viewed 19 times • Downloaded 0 times • Run 0 times
Download the 'MIHS-18 Period 5 Paul N, Tony C' 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
  setup-patches
  setup-monkeys
  reset-ticks
end 

to setup-patches
  ask patches [ set pcolor yellow
  ]
  ask patch -5 5 [ set pcolor blue
  ]
  ask patch 5 5 [ set pcolor blue
  ]
  ask patch -5 -5 [ set pcolor blue
  ]
  ask patch 5 -5 [ set pcolor blue
  ]
  ask patch 0 0 [ set pcolor blue
  ]
end 

to setup-monkeys
  create-turtles 21
  ask turtles [ setxy random-xcor random-ycor ]
  ask turtles [ set shape "monkey" ]
  ask turtles [ set size 3]
end 

to go
  move-monkeys
  eat-bananas
 tick
end 

to move-monkeys
  ask turtles [
    right random 360
    forward 2
  ]
end 

to eat-bananas
  ask turtles [
    if pcolor = yellow [
      set pcolor brown - 2
    ]
  ]
ask turtles [
      if pcolor = blue [
      die
    ]
    ]
end 

There is only one version of this model, created 28 days ago by Tony Coluccio.

Attached files

File Type Description Last updated
MIHS-18 Period 5 Paul N, Tony C.png preview Preview for 'MIHS-18 Period 5 Paul N, Tony C' 28 days ago, by Tony Coluccio Download

This model does not have any ancestors.

This model does not have any descendants.