Serendip is an independent site partnering with faculty at multiple colleges and universities around the world. Happy exploring!
Reply to comment
Emergence 2009: Langton's Ant VII
Biology 361 = Computer Science 361
Bryn Mawr College, Spring 2009
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.