Browse Search Popular Register Upload Rules User list Login:
Search:
Langton's Ant

Image:
screenshot of the scene

Author: Little

Group: Default

Filesize: 32.96 kB

Date added: 2023-05-16

Rating: 5.6

Downloads: 1704

Views: 374

Comments: 2

Ratings: 2

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

Earlier today, my friend was introducing me to a Game of Life program.

I noticed a strange pattern in it called "Langton's Ant".

We both did some research, and long story short: Langton's Ant is a celluar automata algorithm.

There is an ant, and a grid of black and white tiles.

In this simulation, the ant is depicted as a circle. By pressing "START", the simulation will begin and the ants will behave accordingly.

Basically, every tick the ant moves. If it is currently on a black tile, it will turn, and if it is on a white tile, it will turn the other way. It will then flip the color of the current tile, and then move on to the next tile.

This can result in some pretty interesting phenomena. I am not sure whether or not this is turing complete, however I do have a hunch it is.

Eventually every scene with 1 ant and no external interference (i.e. once the simulation is running, you dont modify it anymore) will result in the ant moving in a certain direction infinitely.

Regardless, I have included a few extras in the scene as well!

You can move the ant with the move tool before pressing Start. Note that the ant will snap to a grid of sorts.

You can duplicate the ant by cloning it, and you can invert its rotation by clicking on it.

As well, before the simulation starts, you can click on a tile to invert it - click on a white tile to change it to black and vice versa.

Have phun!

2022 - 2023 XCS


UPDATE: Ant trails now have collision.
Last edited at 2023/05/16 02:14:29 by Little
Please log in to rate this scene
edit
Similar scenes
Title: Langton's ant
Rating: 5.625
Filesize: 28.65 kB
Downloads: 2757
Comments: 1
Ratings: 2
Date added: 2016/09/19 10:56:25
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: It was Supposed to be Langton's Ant
Rating: 5
Filesize: 4.04 kB
Downloads: 279
Comments: 1
Ratings: 1
Date added: 2020/04/17 02:24:11
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Langton's ant attempt #2
Rating: 5.375
Filesize: 3.78 kB
Downloads: 250
Comments: 1
Ratings: 2
Date added: 2020/04/17 15:29:58
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Langton's Ant (Faster)
Rating: 5.8889
Filesize: 3.77 kB
Downloads: 382
Comments: 1
Ratings: 3
Date added: 2020/04/25 19:40:42
Made with: Algodoo v2.1.0
Rating: rated 5.9
download
Title: Langton's Ant Attempt #3
Rating: 5.25
Filesize: 3.72 kB
Downloads: 245
Comments: 2
Ratings: 2
Date added: 2020/04/17 21:16:00
Made with: Algodoo v2.1.0
Rating: rated 5.3
download
Title: Fix for FRA32's ants
Rating: 5.625
Filesize: 4.26 kB
Downloads: 1308
Comments: 1
Ratings: 2
Date added: 2016/09/18 22:48:41
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Excellent work, Little! :tup: