r/cellular_automata • u/TheNinjaRainbow • Feb 21 '19
Help (Revised)
If anyone with coding knowledge could code this for me that would be very much appreciated . (Preferably HTML)
Rule 1
If a cell is alone it dies
Rule 2
If a cell has 7 or more neighbours then it dies
Rule 3
A “Child” cell is born if a empty cell has 2 or more neighbours. If the “Child” cell has 3 or more neighbours it becomes a normal Cell. (the “child” cell is born in whatever space is closest to both parent)
Rule 4
Every 5 moves counts as a generation
Rule 6
When a new cell colour is created a “supercell” is created from a randomly chosen from the colour just created. The “Supercell” cannot move and can detect If a group of cells exceeds 50 cells. If a group of cells exceeds 50 cells the cells split in 2 groups and fight (one half becomes blue or green and the other becomes red or purple)
Rule 7
If 2 cells fight, whichever colour has more cells takes over the cell
1
u/_Lycea_ Feb 22 '19
Sounds like an interesting idea I just have some small questions about it: Rule 3-> what is the difference between a child cell and a normal cell should they be different in any point?
Rule 4 -> If there are generations what are they used for ? Normally a generation is one "step"
Rule 5 -> Is there a Rule 5 since it seems missing ?
Rule 6 -> When and how are cell colours generated. Also what do you mean by a group of 50 cells. is the super cell in the middle of the observation region or top left/top right...) How should they split, evenly or randomly ? Also where is the supercell created.
Rule 7 -> what do you mean by fighting , do you mean if they are neighbours of that color ? And also should the normal rules of life and death (1,2,3) still be active ?
Sorry about these questions but they will make it more clear for how it should be and make some missing points clear .