This model attempts to recreate flocking as based on Craig Reynolds' Boids simulation. Each bird uses three headings to compute its new heading -- approaching their neighbors, aligning with their neighbors, and not crashing into their neighbors. Flocks form without a designated leader.

For detailed instructions on using the program, take a look at the info window from the Flocking model.

Download the StarLogoT source code for the Flocking model:
Download flocking

To run this file you need StarLogoT2002 for the Macintosh.
(download StarLogoT)

Click on one of the pictures to see a quicktime movie of the model:
This is a typical run of flocking. There are 35 turtles.