I am trying to implement a very basic Game of Life program on C++ on a 2D torus field.
Right now I have a 50x50 array, how do I make the blocks (my 'cells') wrap across the grids?
I understand that the modulus (%) operator must be used...
Any ideas?
TIA
Right now I have a 50x50 array, how do I make the blocks (my 'cells') wrap across the grids?
I understand that the modulus (%) operator must be used...
Any ideas?
TIA
