The game of life cannot be faked endlessly. Say that the structure you created is trying to expand the last borders, which should stop its infinite expansion. Like MitchWheat, you can wrap the edges that are best suited (for a more natural behavior), but since this completion is complete, you cannot fake it endless in any situation without endless memory.
Since the game of life ends in full, this means that if something "leaves the edge", it is impossible to say whether it will return to the general case (related to the problem of stopping), which means any heuristic that you use to decide when it will go away from the edge, it will have a degree of inaccuracy, if this is acceptable, then you should consider this approach, although IMO imitating the game of life does not defeat the target correctly.
Another way would be to deliberately simulate a larger area than you show that objects seem to go off the edge
source share