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

Emergence 2009: Langton's Ant IV

Emergence

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

Back to index of models

Download/view: SSVmodel.nlogo

 

WHAT IS IT?
My own version of the Vants model, with a deterministic feature that makes it the same all the time. This model's context is the spreading of a (particular) rash, through scratching or other means by transferring the infection by clothing.
HOW IT WORKS

What makes the rash particular is that it spreads by creating one turtle, having it move forward one, then it turns blue on a right turn at 70 degrees, then turns red on left at 70 degrees also. It then goes forward for two more, then the program then loops into infinity (in a circle) whenever it gets to the point where it can't spread anymore.

HOW TO USE IT

setup
go

THINGS TO NOTICE

How it gets caught up in its own loop at the end.

EXTENDING THE MODEL
I plan on adding more to this code to see how much different I can make it.
NETLOGO FEATURES
I tried to create different shapes to see how they would interact with each other, but I'll have to try that again on another version on this program.
RELATED MODELS
Computer Science --> Vants
CREDITS AND REFERENCES
Vants model, NetLogo Model Library

 

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.
6 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.