CA Rules gives unique strcture to each Integer

For discussion of other cellular automata.
Post Reply
Teddybot
Posts: 3
Joined: April 14th, 2012, 2:01 pm

CA Rules gives unique strcture to each Integer

Post by Teddybot » April 14th, 2012, 2:03 pm

Video:
http://youtu.be/esXOoypzM1E

Teddybots CA rule:
Place one cell down and give it a value of 1 or greater.
It also works with more than one cell placed down.

Rule #1
If it is divisible by two subtract from the cell the original value and add each half to the value of the cell on the left and right hand side (or one axis).

Rule #2
If it is divisible by three subtract 2/3 and add 1/3 to the cell above and below (or other axis)

Rule #3
Divide by two and reduce to an integer.
Subtract the integer value from the cell twice. (leaving the remainder in the cell)
Add the integer value to the cell above and below. (same axis as 1 or 2 or go 3D with z axis)

This results in very symmetrical patterns for each number.

In 3D use Rule#3 to affect cells in z not just x and y.
Try combos of rules. Checking for division by 5, 7 did not change much.
Placing Rule #3 on the same axis as Rule #1 has less snow flake like structures.

This rule is very good for on the fly generation of 2D and 3D shapes.

The number of cells in the finished structure will always be the same as the value you started with in your original cell.

If more than one seed cell is placed down it has an additive effect.

Teddybot
Posts: 3
Joined: April 14th, 2012, 2:01 pm

Within the integer

Post by Teddybot » April 14th, 2012, 2:15 pm

While the integer is being expanded there is something similar to gliders.

When all cells are set to 1 and
2 is in a cell to the left of a 0 the 2 and the 0 will move to the left.
2 is in a cell to the right of a 0 the 2 and the 0 will move to the right.
(if the even rule is on the horizontal axis)

At certain points 3 moves up and down.
The number 300 in the first video has a few 3's move around but the recording not show each frame
This video uses rule #3 on the horizontal axis vs. the video in the first post on vertical.
http://youtu.be/zSTrdUKWdIw

User avatar
Hektor
Posts: 89
Joined: November 3rd, 2011, 2:37 pm

Re: CA Rules gives unique strcture to each Integer

Post by Hektor » April 16th, 2012, 1:00 pm

Impressive!
Which program are you using?

Teddybot
Posts: 3
Joined: April 14th, 2012, 2:01 pm

Re: CA Rules gives unique strcture to each Integer

Post by Teddybot » April 16th, 2012, 9:50 pm

I wrote it from scratch in Javascript am am looking at Processing.org to implement in Java for larger numbers displayed at pixel granularity.
Thanks!

Post Reply