What is causing my patches to cover my turtles?

Viewed 28

I have been following the tutorial listed here Netlogo tutorial pt3

In the section "Patches and variables" I simply do not observe the image shown when I followed the steps exactly.

enter image description here

Instead, I can only see a green cube with my agents seemingly stuck inside.

What am I missing here? My word is only a single cube.

enter image description here

These are the routines that I've copied from the tutorial that should show turtles scattered across the green patch.

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 Answers

enter image description hereIt turns out the tutorial omits to tell you that you need to set the max-pzcor value in model settings to zero for this to work.

Related