net logo patch patch-at错误消息

时间:2016-06-22 06:42:55

标签: netlogo

我想询问当前的错误消息:

  

你不能在观察者环境中使用patch-at,因为patch = at是   龟/贴片/只

globals [payoffs]

patches-own [payments]

to setup
  clear-all
  ; green: cooperate  red: defect
   ask patches [
    set pcolor green
    set payments [ ] 
   ]

ask patch-at 1 -1 [set pcolor red]

; cooperate 0  defect 1
set payoffs [[3 0] [4 1]]

   reset-ticks
   end

to go
  tick
  ask patches [
    play
  ]
  ask patches [
    update
  ]
end

0 个答案:

没有答案