Extra Task

Extra Task preview image

1 collaborator

Default-person Taif Ali (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 247 times • Downloaded 28 times • Run 0 times
Download the 'Extra Task' modelDownload this modelEmbed this model

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


ODD Model Purpose The purpose of this model is to write my name and to create breeds of turtles i.e. the breed name is taifs and the number of turtles is equal to my reg number i.e 29. Where the turtles move randomly and when they see my name letter they move toward it. They move randomly in the letter and can not move out of the name letter. State variables and scales The agents used in this model are turtles that walk randomly. And patches that is showing my name. Process Overview and scheduling First write a letters of my name i.e Taif on patches with the red color. Then create the fixed number of turtles i.e. 29 equal to my reg number and they move random move when they see the red color they move toward the red color. When they come in the letter then they only move on the letter and can not move out of the name letter. Design Concepts Emergence The name model formed an emergent behavior when the turtles see the letters of red color and move toward them. When they come in the letter then they only move on the letter and cannot move out of the name letter that form a complex behavior as a whole. Adaptation The turtles improve their fitness from the number of trapped turtles and un trapped turtles. Fitness The aim of the agents is to write name on patches and create turtles that move randomly when they see letters of name they move toward it.. When they come in the letters then they only move on the letter randomly and cannot move out of the name letter. Collectives The fixed number of turtles i.e 29 of name Taif that are used in this model where they come to the letters patches i.e. red color. Observation The data is collected for analysis by running the model for a specified number of times. From the behavior space the experiment is performed for specified number of times and save the data in the spreadsheet. The collection of data includes number of trapped and un trapped turtles in the letters. Initialization The simulation starts with writing my name i.e.TAIF through patches and create fixed number of turtles that move randomly. The name is created on fixed patches and not allowed to change for different experiments. Input Data The model does not get input data from external sources. Sub models writing Taif through patche with fixed number of turtles.

Comments and Questions

Please start the discussion about this model! (You'll first need to log in.)

Click to Run Model

breed [taifs anjum]
globals [trapped? ]

to setup
  ca
  ;Reg number is 01-241171-029
  ; name Taif Ali
  create-taifs 29 [
  setxy random-xcor random-ycor
    set color green
    set size 15
  ]
 ask patches [
 set pcolor white
 ]
  reset-ticks
 setup-name
  go
end 

to setup-name
  ;code to Write T
  ask patches with [pxcor >= -138 and pxcor < -132 and pycor >= 15 and pycor < 90 ][set pcolor red]
  ask patches with [pxcor > -182 and pxcor < -90 and pycor >= 85 and pycor < 90 ][set pcolor red]

  ;code to Write A

  ask patches with [pxcor >= -110 and pxcor < -105 and pycor > 14 and pycor < 75 ][set pcolor red]
  ask patches with [pxcor >= -75 and pxcor < -70 and pycor > 14 and pycor < 75 ][set pcolor red]
  ask patches with [pxcor > -110 and pxcor < -75 and pycor >= 35 and pycor < 40 ][set pcolor red]
  ask patches with [pxcor > -110 and pxcor < -75 and pycor >= 69 and pycor < 75 ][set pcolor red]

  ;code to Write I
 ; ask patches with [pxcor > -60 and pxcor < -35 and pycor >= 69 and pycor < 75 ][set pcolor red]
  ask patches with [pxcor >= -50 and pxcor < -45 and pycor > 14 and pycor < 75 ][set pcolor red]
  ask patches with [pxcor > -53 and pxcor < -45 and pycor >= 85 and pycor < 95][set pcolor red]


  ;code to Write F

  ask patches with [pxcor >= -30 and pxcor < -25 and pycor >= 15 and pycor < 90 ][set pcolor red]
  ask patches with [pxcor > -30 and pxcor < -2 and pycor >= 85 and pycor < 90 ][set pcolor red]
  ask patches with [pxcor > -30 and pxcor < -2 and pycor >= 50 and pycor < 55 ][set pcolor red]
end 

to go
  ask patches [
    if pcolor = black
  [set pcolor white ]
  ]
  ask taifs [
    rt random 20
    lt random 20
    fd 2

   ask patches in-cone 10 29
    [
      if pcolor = white
    [ set pcolor black]
    ]
]
  ask taifs [

 let targ one-of patches with[pcolor = red]
 if targ != nobody [set heading towards targ fd 2]
  ]

tick
  ask taifs [ask patches in-cone 10 29  [
    if pcolor = red
    [set trapped? true ]


    ]
  ]


  ask taifs with [pcolor = white]
  [set trapped? false ]
end 

There is only one version of this model, created about 7 years ago by Taif Ali.

Attached files

File Type Description Last updated
Extra Task.png preview Preview for 'Extra Task' about 7 years ago, by Taif Ali Download

This model does not have any ancestors.

This model does not have any descendants.