user3731312
user3731312

Reputation: 19

How to create turtles of a particular breed in NetLogo?

I want with pressing the setup button at the netlogo tree and house shapes exist But only 3 person show to me Please help me:

    breed [people person]
      breed [houses house]
      breed [trees   tree]
            to setup
        clear-all
        set-default-shape people "person"
        set-default-shape houses  "house"
            set-default-shape trees   "tree"
     crt 3[         
      set color red
      set size 2  ;; easier to see
      setxy random-xcor random-ycor
     ] 

Upvotes: 0

Views: 323

Answers (1)

bergant
bergant

Reputation: 7232

Call create-houses (instead of crt) to create houses. See create-turtles in manual.

Upvotes: 1

Related Questions