Can anyone please confirm for game of life:
if inputs
- - - -
- x x x
x x x -
- - - -
and
- x x x
x x x -
are similar . If yes. how ?? please explain.
For background on “game of life” problem .. please refer Toad pattern in game of life it is basically toad pattern input.
From a theoretical perspective, the two are identical, since the grid of cells is infinite, and all cells not denoted are assumed to be initially dead.
In practice, however, it depends on how your implementation of Life handles cells that are on the “edge” of the current grid. Depending on the implementation, there are three common ways of treating “edge” cells:
If your implementation takes the second or third approach, the patterns will produce different results.
To avoid this confusion, patterns which stay contained within a certain space can be denoted including any necessary initially dead space, so as to avoid the edge problem all together. This is the approach that has been taken in the first pattern.