Conway’s game of life


Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4048
Posted: 07:24pm 27 Apr 2020      

  Turbo46 said  ... printing the whole matrix after the whole array has been updated.


I haven't had opportunity to measure it myself, but isn't that perceptibly slower than printing as you go along?

Aside: it also uses more memory but that isn't an issue for such a small program and in any case you are already using 4 bytes to store each cell where you only need 1 bit.

Best wishes,

Tom