到目前为止,我坚持使用 This 但第三行似乎不起作用。有人能解释一下如何向乌龟要他的补丁吗?
let otherTurtle min-one-of other turtles [distance myself]
let otherTurtleHeading [heading] of otherTurtle
let otherTurtlePatch [patch] of otherTurtle
答案 0 :(得分:2)
您已经接近。你想要的是
let otherTurtlePatch [patch-here] of otherTurtle
patch-here
是一个记者,返回补丁乌龟坐在和,在这种情况下,补片在其上otherTurtle坐在