Difference: Lab7Kenyon (23 vs. 24)

Revision 242017-10-31 - JimSkon

Line: 1 to 1

Lab 7 - Game of Life

Line: 112 to 113
  You should consider using classes to do the game. What I would suggest the following class:
int board[22][82];
int tempBoard[22][82];
char board[22][82];
char tempBoard[22][82];
World() // Constructor
void inputBoard() // Ask user for positions of life
void display() // Display the board
void nextGen(); // move to the next generation
The functions described in the design above should be private helper functions inside the class. The main can be something like:
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback