定义家乡龟? [英] Define home area-turtles?
问题描述
我对netlogo非常陌生.在发布此信息之前,我已经在这里搜索了每个问题.
I am very new to netlogo. I have searched every question here before I posted this.
我有以下代码可以萌生出一定数量的马:
I have the following code which sprouts a given number of horses:
用[草吗? =是"] [新芽马1 [设置颜色25]]
ask n-of Number-horses patches with [grass? = "Yes"] [sprout-horses 1 [set color 25 ]]
此人可以使用滑块更改马匹的数量,但是我希望每匹马都有自己的面积/范围/半径.
The person can change the number of horses using the slider but I would like each horse to have its own area/range/radius.
他们只能在这个半径/范围内移动,而且彼此无法相遇.
They can only move within this radius/area and they cannot meet each other.
根据我所读的内容,它与距离函数有关吗?
From what I've read it's got something to do with the distance function?
推荐答案
您也可以在此处找到类似的问题,其中也包含示例:
You can find a similar problem here which has examples too :
这篇关于定义家乡龟?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!