Use the same menu as Homework 5. Also, the same four functions that are
required for Homework 5 should exist in this program. Your only change to
those functions will be to pass the structure array to the functions and
alter the structure array within the functions instead of using parallel
arrays as in Homework 5.
Use a text file to contain the initial generation for the game. The text file has the same format as the screen output. That is, it will contain 22 lines with each line having 80 characters. A space indicates an empty cell and an asterick indicates an occupied cell. Try using some of the initial configurations given in the above resources.
Sample input files follow:
I've uploaded a working binary solution to the problem so you can see how the game appears on these sample files. From within Helios, run the following command:
/usr/users/mdanfor/public_html/cs221-f08/golIt will prompt you for the number of generations (I'd suggest start low like 50 and only go higher for more complex patterns) and the filename. Try it out on the above filenames to see it in action. It works best if your terminal is set for 24 rows and 80 cols. It uses some more advanced programming to make the game appear like a movie. You do not need to do that in order to get credit for the assignment.