Write your question here.
I am trying to write down Conway's game of life on a 90 by 90 board which goes on for 30 generations. It reads in from a .dat file and outputs to a .txt file.
Using 8 inputs for rows and columns respectively:
61 61
60 60
59 60
48 50
47 50
46 50
51 50
52 50
I can't seem to read in from the file correctly. It gives me eight X's in a straight line with no table or order
You weren't printing the whole array of life, just checking if what was in the current location, which you just filled, was true. Then printed the 'X'. Here is printing the life array. I made it a little smaller, so it fits on the screen better.