NetLogo banner

Home
Download
Help
Forum
Resources
Extensions
FAQ
NetLogo Publications
Contact Us
Donate

Models:
Library
Community
Modeling Commons

Beginners Interactive NetLogo Dictionary (BIND)
NetLogo Dictionary

User Manuals:
Web
Printable
Chinese
Czech
Farsi / Persian
Japanese
Spanish

  Donate

NetLogo Models Library:
Code Examples

(back to the library)

One Turtle Per Patch Example

[screen shot]

If you download the NetLogo application, this model is included. You can also Try running it in NetLogo Web

WHAT IS IT?

In some models, you want to allow only one turtle per patch. This example demonstrates a few different techniques for achieving this. This code example includes three strategies for moving turtles around while keeping the one turtle per patch satisfied.

It also demonstrates how to create turtles so they are only one turtle per patch. Your choice of strategy should be dependent on the behavior you want to exhibit in your model. To learn more about the strategies and their behaviors, read through the comments in the Code tab.

RELATED MODELS

See the Segregation in the models library to see this being used in a real model.

(back to the NetLogo Models Library)