【发布时间】:2020-02-09 22:40:55
【问题描述】:
我正在尝试让它在 while 语句中检测某个位置的补丁是否是某种颜色,这就是我现在拥有的,但它不起作用。
while [ patch-at x ytemp with [ pcolor = 44 ] ] [ 设置 ytemp ytemp - 1 ] 问 patch-at x ytemp [ set pcolor 44 ]
因此,在这种情况下,它基本上沿着补丁线垂直运行,当它找到不是颜色 44(深黄色)的补丁时,然后将该补丁更改为 44。
【问题讨论】: