Calculator Community > Grammer

Langton's Ant

(1/2) > >>

Xeda112358:
In preparation for a presentation, I wrote a quick program to show the cellular automata rule for Langton's Ant. Basically, if the "ant" is over an ON pixel, the ant turns right, if it is on an OFF pixel, the ant turns left. Then the ant inverts the pixel and moves a pixel in the new direction. It leads to some very complex patterns and has been used to make pseudo-random number generators. I left it running for over 2.5 million iterations yesterday and it was still chaotic (with 1 ant). Try watching 2 ants over time :)

This is a Grammer program and the world is 64x64 pixels, and is toroidal (basically, the world wraps in all directions, so if you go off the edge of the screen, it wraps around to the other side).

Yeong:
nice. :D
I love when people make some crazy math/logic oriented stuff on calc.

Xeda112358:
:D I've been making lots of test programs lately in preparation for the presentation (I am going to try to give a 100 minute presentation on cellular automata). I am going to be using WabbitEmu (full screen mode) and a bunch of TI programs for the presentation :D

Adriweb:
Very nice !

Is your presentation going to be recorded ? :)

shmibs:
* shmibs seconds that interest ^^
where is it being presented?

Navigation

[0] Message Index

[#] Next page

Go to full version