CA Rules gives unique strcture to each Integer
Posted: 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.
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.