Serendip is an independent site partnering with faculty at multiple colleges and universities around the world. Happy exploring!

Emergence 2009: Langton's Ant VII

Emergence

Biology 361 = Computer Science 361
Bryn Mawr College, Spring 2009

 

Back to index of models

Download/view: Oscillation.nlogo

 

WHAT IS IT?
This is a variation of Langdon's Ant. An 'interesting' oscillating pattern can be observed upon running the model.
HOW IT WORKS
Four turtles are initially created each five units from the origin on the x and y axes. Each turtle has a heading directed away from the origin on the axis that they lie. Upon running the model, each turtle moves forward one unit. If the turtle's new patch color is black, the turtle changes the patch color to green and turns 90 degrees to its right. If the new patch color is not black, the turtle changes the patch color to black and turns left 90 degrees.
HOW TO USE IT
Click the 'setup' button. Click the 'go' button.
THINGS TO NOTICE

When clicking the 'go' button, the program loops, and an oscillating pattern can be observed.

THINGS TO TRY
You should try changing the initial headings of one the turtles by any amount even a single degree and notice if the oscillating pattern can still be observed. You can also change any of the headings by a single unit to see if the oscillating pattern can be observed. The results might suprise you...
RELATED MODELS
Vants model, Langdon's Ant on Serendip
CREDITS AND REFERENCES
Langdon's Ant, Vants model

 

Models created using NetLogo.

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
To prevent automated spam submissions leave this field empty.
3 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.