如何從數組中設置龜的顏色?NetLogo - 如何從數組中設置龜的顏色
這裏是我的代碼,但它不工作:
let colors array:from-list ["red" "yellow" "blue" "pink"]
set index random 3
let c array:item colors index
set color array:item colors index
導致這個錯誤:
can't set flower variable COLOR to non-number blue error while flower 101 running SET
這是確定anymore.Thanks – Ecrin 2011-12-23 16:01:21