//life_driver.c // //Life Driver program //Roger Priebe 9/5/2018 //EE 312 /* Student information for project: * * Replace with your name. * * On my honor, , this programming project is my own work * and I have not provided this code to any other student. * * Name: * email address: * UTEID: * Section 5 digit ID: * */ //This file is a driver program for the life.c module. //This program must work with your implementations life.h and life.c //Do not change the function definitions for populateWorld, showWorld or //iterateGeneration. // #include #include #include #include "life.h" int main(int argc, char *argv[]) { //edit these two lines and use the command line arguments char fName[] = "world.txt"; const int numGenerations = 2; //set to a smaller number for debugging const int MAX_ROWS = 80; //we want the world to fit on one screen //array of strings that will hold the grid char *world[MAX_ROWS]; int numRows; int numCols; populateWorld(fName, world, &numRows, &numCols); showWorld(world, numRows, numCols); for (int iteration = 0; iteration < numGenerations; iteration++) { // code to clear screen goes here iterateGeneration(world, numRows, numCols); showWorld(world, numRows, numCols); } return 0; }