This section describes the NetLogo programming language in detail.
The Code Example models mentioned throughout can be found in the Code
Examples section of the Models Library.
The NetLogo world is made up of agents. Agents are beings that can follow
In NetLogo, there are four types of agents: turtles, patches, links,
and the observer.
Turtles are agents that move around in the world. The world is two
dimensional and is divided up into a grid of patches. Each patch is a square
piece of “ground” over which turtles can move. Links are agents that connect two
turtles. The observer doesn’t have a location – you can imagine it as looking
out over the world of turtles and patches.
The observer doesn’t observe passively – it gives instructions to the other
When NetLogo starts up, there are no turtles. The observer can