Courses/CS 461/Winter 2006/Martin Olsen/Week 4
From CSWiki
< Courses | CS 461 | Winter 2006 | Martin Olsen
[edit] Week 4
Inspired by the discussion around non-algorithmic programming last week I made a new netlogo model:
- The model consists of a number of worms.
- If a worm hits another worm it will turn either right or left.
- If the worm does not hit another worm it goes straight ahead.
- The worms are set up in a random order.
- The worms can only move east, south, west, north, no in-the-middle degrees, only 90, 180, 270, 360.
The worms after they are set up in a random order:

After a while the worms will find a pattern where they do not have to turn right or left anymore. (emergence):

Source code

