Conway’s game of life


Author Message
Turbo46

Guru

Joined: 24/12/2017
Location: Australia
Posts: 1639
Posted: 03:43am 27 Apr 2020      

G1 = 1 - G1
G2 = 1 = G1


I understand (eventually)

I was thinking of using:

NextGen 0,1
NextGen 1,0

To tell NextGen which array to use and which to update but your suggestion means that I only have to call NextGen once with no parameters.

Neat!

Thanks again Jim.

Bill

Edit: Should that be:
G1 = 1 - G1
G2 = 0 = G1


Edit2: Got the TeraTerm version working with Jim's suggestion of a 3 dimensional matrix and will post it later.
Edited 2020-04-27 15:05 by Turbo46
Keep safe. Live long and prosper.