0
我想在两种不同颜色的龟重叠之后孵化龟。基于其他龟色指定颜色的孵化龟
to interact
if any? other turtles-here
[
birth
]
;detect interaction
end
to birth
ask turtles
[
hatch random 5 [ fd 1 ]
]
end
我想孵化一只乌龟,它是两只相互作用的母龟的平均颜色。
类似的东西。
to birth
ask turtles
[ hatch random 5
[ let color be sum of previous turtles color sum/2
fd 1 ] ]
end
还有什么我可能会误解netlogo语法的提示可能会被赞赏。