Malaria Virus Model

No preview image

1 collaborator

Default-person Nasab Al-Rawas (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.4 • Viewed 157 times • Downloaded 17 times • Run 0 times
Download the 'Malaria Virus Model' 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

breed [people person]
breed [wolves wolf]

to setup
  create-people 100[
   set shape "person"
   setxy random-xcor random-ycor
   set color blue
  ]

  create-wolves 100 [
   set shape "wolf"
   setxy random-xcor random-ycor
   set color gray
   set pcolor white
  ]
end 

to go
  ask people [
  fd 1
  ]
  infectPerson
  heal
  death
end 

to move
  ask turtles [
  fd 1
  rt random 60 - 30
  ]
end 

to infectPerson
  ask people [
  if any? wolves-here with [color = red]
  [set color red]
  setxy random-xcor random-ycor
  ]
end 

to death
end 

to heal
  ask people with [color = red]
  [if random 10 = 0[set color blue]]
end 

There are 3 versions of this model.

Uploaded by When Description Download
Nasab Al-Rawas about 5 years ago virus Download this version
Nasab Al-Rawas about 5 years ago virus Download this version
Nasab Al-Rawas about 5 years ago Initial upload Download this version

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.