【发布时间】:2020-04-07 17:17:03
【问题描述】:
在我正在进行的模拟中,我有红海龟。 我希望它们一开始是黄色的,然后在 10 个滴答声后变成橙色,然后在 10 个其他滴答声后变成红色。 我该怎么做?
to ignite
ask fires [
if count neighbors > 0 [
ask one-of neighbors with [pcolor = white or pcolor = green ]
[
if count fires-here < 6 [
sprout-fires 3
[ set color red set size 3 ]
]
]
]
]
end
【问题讨论】:
标签: simulation netlogo