代码之家  ›  专栏  ›  技术社区  ›  Ian Gibblet

是什么导致我的补丁覆盖了我的海龟?

  •  0
  • Ian Gibblet  · 技术社区  · 3 年前

    我一直在遵循这里列出的教程 Netlogo tutorial pt3

    在“补丁和变量”一节中,当我严格按照步骤操作时,我根本没有观察到显示的图像。

    enter image description here

    相反,我只能看到一个绿色的立方体,里面似乎卡着我的特工。

    我错过了什么?我的话只是一个立方体。

    enter image description here

    这些是我从教程中复制的例程,应该会显示海龟散布在绿色地带。

    to setup
      clear-all
      setup-patches
      setup-turtles
      reset-ticks
    end
    
    to setup-turtles
      create-turtles 100
      ask turtles [ setxy random-xcor random-ycor ]
    end
    
    
    to setup-patches
      ask patches [ set pcolor green ]
    end
    
    1 回复  |  直到 3 年前
        1
  •  2
  •   Ian Gibblet    3 年前

    enter image description here 事实证明,本教程没有告诉您需要将“模型设置”中的“最大pzcor”值设置为零,这样才能工作。