Home

Previous Entry | Next Entry

The Demons of Cyclic Space

  • Nov. 9th, 2007 at 2:49 PM
hacker

I read about the Demons of Cyclic Space in the Computer Recreations column of Scientific American written by A.K. Dewdney. The article described a simple cellular automata. I found the idea a bit fascinating so I spent some time and implemented a simple version on my PC. I kept writing new versions as I upgrade my computer but sometime around 1995 I put it aside and haven’t touched it in a long time.

Recently I was digging around old disks and backup files and I came across the Windows version I wrote using MFC and Visual C++. Surprisingly it worked without changes and is so fast that I can’t watch the changes as they occur.

I think it’s time to dust off my old friend and experiment some more. What happens if I increase or decrease the number of cell types? What about restricting growth in certain directions? How would giving one type of cell a higher starting population change the outcome?

Below the cut I’ve placed some images of the simulation as it runs. It is a pale imitation because you can’t see the transformation from noise to ordered little cells marching along.

Demons Debris

This first stage shows the “debris” stage. The field is filled with a random collection of cells.

Demons Droplets After a few hundred generations isolated single cells have devoured their neighbors to create waves of a single color that spread across the field. Of course every type of cell can be eaten so the waves roll back and forth as the cells eat each other.
Demons Begin The defects, or demons as Dewdney called them, start to appear. A demon is a small circle of cells that eat each other. Since they are tightly knit we have thin bands of them spreading out instead of the large areas in the earlier phase. There still are droplets spreading there waves and groups of individual cells.
We’ve reached the final “demon” stage of the simulation. All of the cells are consuming and being consumed by their neighbors each generation. The colors just spin around and round the center of each defect without end. Time to end the simulation.

Comments

( 4 comments — Leave a comment )
[info]kendaer wrote:
Nov. 10th, 2007 05:37 am (UTC)
I wrote, as my senior project in college, a generic Cellular automata simulator under X windows. It used a ruleset and a configuration file to implement any cellular automata that could be described by discrete state changes and a neighborhood which could be defined within 5 cells in any direction from the origin cell..

In this simulator I created rules for Life (of course), knight life (life rules but the neighborhood are the 8 cells a knights move away from the current cell instead of the 8 adjacent cells) and wireworld (an automata which mimics electricity along wires and which can have or/and/nor/xor etc gates built out of it).

I still have the source code around here somewhere, but the X11 APIs have changed enough (and my code was crufty enough in college) that it no longer compiles.

I don't know the rules for 'demons' however, but it'd be semi interesting to see if I could fix up Xcella (the simulator) and run the demon rules under it :)
[info]hollyking wrote:
Nov. 10th, 2007 07:18 am (UTC)
It's a pretty simple CA. I have a book called The Magic Machine which has a copy of the article. I'll write up the rules and send them to you.
[info]hollyking wrote:
Nov. 10th, 2007 07:21 am (UTC)
Or you could read this pdf of a college assignment that I found. ;)
[info]kendaer wrote:
Nov. 10th, 2007 05:44 pm (UTC)
Ahh.. that's a very simple automata set of rules :) I might see if I can revise and resurrect XCella from the grave at some point :) It was a fun toy for playing with just about any sort of automata you could create. Thanks for the pointer :)
( 4 comments — Leave a comment )