How do I create a timer on netlogo?

时光毁灭记忆、已成空白 提交于 2019-12-02 11:13:50

Check out reset-timer and timer and in the docs. During maze setup, do a reset-timer. During the running of maze you can check on elapsed time with timer

If you mean how many patches passed in moving to the target, you can use following:

turtles-own [target move-counter]

 to Your-Move-Function
      let t target 
      face min-one-of all-possible-moves [distance t]
      fd 1
      set move-counter move-counter + 1
    end
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!