Hi!

I recently made the game of life. I am interested in how to create infinite map (in all directions)

The arrays would be like (imagine a graph window):

So the arrays would be ++, ±, -+, --.

Would this be a viable solution?

Hi!

I recently made the game of life. I am interested in how to create infinite map (in all directions)

The arrays would be like (imagine a graph window):

So the arrays would be ++, ±, -+, --.

Would this be a viable solution?

Infinite map would require infinite memory. If we can assume that most of the cells are empty, i.e. they don’t contain any information, it’s possible to present data as sparse matrix. Game of life algorithm would need to be rewritten, but your not first on this path https://blogs.mathworks.com/cleve/2012/09/10/game-of-life-part-2-sparse-matrices/

Presenting infinite game of life returns to the original problem. How do you present infinite space on a fixed display sizes? I quess you can zoom out.

Well, I didn’t really think of that. I am not confident enough in my programming skills to do that yet. Thanks anyway.