Question about the rules
Posted: April 13th, 2016, 9:52 am
Hi,
I plan to make program-code for the "game of life".
To thoroughly understand the principle I took some graph-paper and drew a starting-pattern (the Pentomino).
Now, I have some questions :
Suppose a dead Cell (call this Cell A) pops into life because of 3 live neighbours. Chances are that, as a result, another live cell (call this B) will die because it suddenly has more than three living neighbours.
Is it common practice to FIRST show Cell A and then in the next step eliminate B or do should this all be done in some background-activity and show cell A and B together?.
My plan was to scan the grid, see which cell pop to live and which ones will die. Then scan the grid again and do the same and-so-on....
I plan to make program-code for the "game of life".
To thoroughly understand the principle I took some graph-paper and drew a starting-pattern (the Pentomino).
Now, I have some questions :
Suppose a dead Cell (call this Cell A) pops into life because of 3 live neighbours. Chances are that, as a result, another live cell (call this B) will die because it suddenly has more than three living neighbours.
Is it common practice to FIRST show Cell A and then in the next step eliminate B or do should this all be done in some background-activity and show cell A and B together?.
My plan was to scan the grid, see which cell pop to live and which ones will die. Then scan the grid again and do the same and-so-on....