File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,14 +49,14 @@ The same example in NetLogo 6 (due to syntax changes in NetLogo):
4949```
5050; Colour and label the agents by cluster
5151let ctr 1
52- (foreach clusters (n-of (length clusters) base-colors)
53- [ [ x y ] -> let aset turtles with [ member? self x ]
54- ask aset
55- [ set color y
56- set label (word "ID: " who ", Cluster: " ctr ", Wealth: " wealth) ]
57- ; Print agent sets
58- output-print (word "Cluster " ctr ": " aset)
59- set ctr (ctr + 1) ])
52+ (foreach clusters (n-of (length clusters) base-colors)
53+ [ [ x y ] -> let aset turtles with [ member? self x ]
54+ ask aset
55+ [ set color y
56+ set label (word "ID: " who ", Cluster: " ctr ", Wealth: " wealth) ]
57+ ; Print agent sets
58+ output-print (word "Cluster " ctr ": " aset)
59+ set ctr (ctr + 1) ])
6060```
6161
6262### Clustering by location
You can’t perform that action at this time.
0 commit comments