This page was automatically generated by NetLogo 3.1.3. Questions, problems? Contact

The applet requires Java 1.4.1 or higher. It will not run on Windows 95 or Mac OS 8 or 9. Mac users must have OS X 10.2.6 or higher and use a browser that supports Java 1.4. (Safari works, IE does not. Mac OS X comes with Safari. Open Safari and set it as your default web browser under Safari/Preferences/General.) On other operating systems, you may obtain the latest Java plugin from Sun's Java site.

In order for this to work, this file, your model file (moseralvarez3a.nlogo), and the file NetLogoLite.jar must all be in the same directory. (You can copy NetLogoLite.jar from the directory where you installed NetLogo.)

On some systems, you can test the applet locally on your computer before uploading it to a web server. It doesn't work on all systems, though, so if it doesn't work from your hard drive, please try uploading it to a web server.

You don't need to include everything in this file in your page. If you want, you can just take the HTML code beginning with <applet> and ending with </applet>, and paste it into any HTML file you want. It's even OK to put multiple <applet> tags on a single page.

If NetLogoLite.jar and your model are in different directories, you must modify the archive= and value= lines in the HTML code to point to their actual locations. (For example, if you have multiple applets in different directories on the same web server, you may want to put a single copy of NetLogoLite.jar in one central place and change the archive= lines of all the HTML files to point to that one central copy. This will save disk space for you and download time for your user.)

created with NetLogo

view/download model file: moseralvarez3a.nlogo


This model has a turtle wander the world looking for food in an effort to infer where the tree creating said food is. This process may take upwards of 30,000 timesteps but only because the map is so big relative to the speed at which the turtle traverses it.


The model first creates a "tree" (a brown patch) which every thousand timesteps will create several "food" (yellow) patches in a given radius around the tree. The turtle then wanders the map trying to eat. Everytime the turtle eats it remembers the location and averages all of these locations to guess where the tree is.


The model, though interesting, has room for innovations. One idea is to create multiple trees and have the turtle guess the location of each individual tree. Another is to have the turtle remember the location of food and, upon becoming "hungry", to head off in the direction of the food it recalls. One final possibility would be to combines these examples, having the turtle heading towards the coordinates it believes a tree to be at, and then, upon getting there, consuming the food until it is no longer hungry.


This section could point out any especially interesting or unusual features of NetLogo that the model makes use of, particularly in the Procedures tab. It might also point out places where workarounds were needed because of missing features.


This section could give the names of models in the NetLogo Models Library or elsewhere which are of related interest.


This section could contain a reference to the model's URL on the web if it has one, as well as any other necessary credits or references.