Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试应用以下条件:
if ( the color of patch -2 -1 is red ) [ some commands ]
有人可以告诉我如何在 NetLogo 中写这个吗?
if ([pcolor] of patch -2 -1 = red) [ ]
几乎是你把它放在代码中的方式,阅读教程等等,这应该很简单。请注意,您将 pcolor 用于补丁,将 color 用于海龟。