;; if a turtle gets to a wall, it turns around
to avoid-walls ;; turtle procedure
if not can-move? 1
[ rt 180 ]
end
Netlogo 中检测边界
最新推荐文章于 2023-05-04 14:23:33 发布
;; if a turtle gets to a wall, it turns around
to avoid-walls ;; turtle procedure
if not can-move? 1
[ rt 180 ]
end