本文介绍了在我的代码中设置补丁大小的位置是否正确,并且设置了正确的命令使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
编译时,我收到一条错误消息,说在补丁大小10之前设置是错误的命令程序,我应该改用哪个命令程序,为什么?
upon compilation I receive an error message saying set is the wrong commander before patch size 10 what commander should I use instead and why?
globals[road?]
to setup
clear-all
ask patches [set pcolor green]
end
to go
if mouse-down?
[ ask patch mouse-xcor mouse-ycor [ edit-world ]
end
to edit-world
if EDIT_TOOL = "Road"
[set pcolor grey
set patch-size 10
]
end
推荐答案
补丁大小不能通过编程方式更改,只能在设置中更改.
Patch-size can not be changed programatically but only in settings.
所有补丁都具有相同的大小.
All patches have the same size.
您正在尝试对那条线进行明智的模拟吗?补丁大小不会影响任何结果.
What are you trying to do simulation wise with that line? Patch-size should not effect any outcomes.
我错了 Set-patch-size更改所有补丁的大小,即缩放视图.
I was wrong Set-patch-size changes the size of all patches i.e. scales the view.
这篇关于在我的代码中设置补丁大小的位置是否正确,并且设置了正确的命令使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!