【发布时间】:2014-10-15 22:54:36
【问题描述】:
如果我希望它们仅位于蓝色斑块上,如何在这种情况下使所有海龟发芽。
breed [type1s type1]
breed [type2s type2]
to setup
create-type1s population
[ set color white
set size 1 ]
create-type2s ((percent_of_leader / 100) * population )
[ set color black
set size 1]
end
在此之前,我只使用下面的代码。对于上述情况,还有其他方法可以使龟发芽吗?
to setup
ask n-of population patches with [ pcolor = blue]
[ sprout 1
[ set color white
set size 1]]
end
如果有人可以提供帮助,请感谢
【问题讨论】:
标签: netlogo