Bahria University Cafe1

No preview image

1 collaborator

Tags

(This model has yet to be categorized with any tags)
Visible to everyone | Changeable by the author
Model was written in NetLogo 6.0.2 • Viewed 57 times • Downloaded 2 times • Run 0 times
Download the 'Bahria University Cafe1' 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


globals [
  seating-x seating-y    ;; location of center of nest
]

to setup
  clear-all
  cro Male_students
  [
    set shape "person"
    setxy 15 15
    set color green
  ]
  cro Female_students
  [
    set shape "person"
    setxy -15 -15
    set color pink

  ]
  ask patches with [pxcor = 13 and pycor > -4 and pycor < 4][
    sprout 1 [
      set color brown
      set shape "circle"
      set size 2
      stamp
      die
    ]
  ]
  Setup-Food
  Setup-Food2
  Setup-Food3
  Setup-Food4
end 

to go


  ask turtles with [shape = "person"][fd 1]
end 

to Setup-Food



;Seating places for students in Cafe




;tables for Stduents in Cafe



  ask patches with [pxcor = 12 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]
    ask patches with [pxcor = 11 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = 10 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = 9 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = 8 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = 7 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]



      ask patches with [pxcor = 6 and pycor > -4 and pycor < 4 ]
  [
    set pcolor blue
  ]
     ask patches with [pxcor = 6 and pycor > 4 and pycor < 4 ]
  [
    set pcolor blue
  ]
end 

to Setup-Food2


;Seating places for students in Cafe

  ask patches with [pxcor = -13 and pycor > -4 and pycor < 4]
  [
    set pcolor blue
  ]
     ask patches with [pxcor = -13 and pycor > -4 and pycor < 4]
  [
    set pcolor blue
  ]


;Tables for students in Cafe


  ask patches with [pxcor = -12 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]
    ask patches with [pxcor = -11 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = -10 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = -9 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = -8 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pxcor = -7 and pycor > -6 and pycor < 6 ]
  [
    set pcolor green
  ]


 ;Seating places for students in Cafe


    ask patches with [pxcor = -6 and pycor > -4 and pycor < 4]
  [
    set pcolor blue
  ]
     ask patches with [pxcor = -6 and pycor > -4 and pycor < 4]
  [
    set pcolor blue
  ]
end 

to Setup-Food3


;Seating places for students in Cafe


   ask patches with [pycor = -8 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]
   ask patches with [pycor = -8 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]

;tables for Stduents in Cafe

   ask patches with [pycor = -14 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]
   ask patches with [pycor = -13 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]
  ask patches with [pycor = -12 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]

  ask patches with [pycor = -11 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]

  ask patches with [pycor = -10 and pxcor > -6 and pxcor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pycor = -9 and pxcor > -6 and pxcor < 6 ]
  [
    set pcolor green
  ]

  ;Seating places for students in Cafe

    ask patches with [pycor = -15 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]
   ask patches with [pycor = -15 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]
end 

to Setup-Food4

;Seating places for students in Cafe
     ask patches with [pycor = 8 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]
   ask patches with [pycor = 8 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]


;tables for Stduents in Cafe

   ask patches with [pycor = 14 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]
   ask patches with [pycor = 13 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]
  ask patches with [pycor = 12 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]

  ask patches with [pycor = 11 and pxcor > -6 and pxcor < 6]
  [
    set pcolor green
  ]

  ask patches with [pycor = 10 and pxcor > -6 and pxcor < 6 ]
  [
    set pcolor green
  ]

  ask patches with [pycor = 9 and pxcor > -6 and pxcor < 6 ]
  [
    set pcolor green
  ]


  ;Seating places for students in Cafe
ask patches with [pycor = 15 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]
   ask patches with [pycor = 15 and pxcor > -4 and pxcor < 4]
  [
    set pcolor blue
  ]
end 

There is only one version of this model, created 12 months ago by Muhammad Orangzaib.

Attached files

No files

This model does not have any ancestors.

This model does not have any descendants.