// life.cpp plays the game of Life.
// Author: Joel Adams, for Hands On C++.
// Date: November 1997.
// Completed by:
//
#include "LifeGame.h"
int main()
{
cout << endl << "Enter the name of the initial configuration file: ";
string inFile;
cin >> inFile;
// initialize the game
// LifeGame theGame(inFile);
// clean out the newline following the name of the file
char ch;
cin.get(ch);
int count = 0;
for(;;)
{
// display current configuration
cout
// << theGame
<< endl << "Generation " << count
<< " - press 'Enter' to continue (Ctrl-D to quit)..."
<< endl;
cin.get(ch);
if (cin.eof()) break;
// generate next configuration
// theGame.NextGeneration();
count++;
}
}