Advertisement
shywolf91

2nd assignment (HG)

Feb 24th, 2012
263
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. Conway's Game of Life
  2.  
  3. For this assignment your are to write a program, that plays Conway's game of Life. See the Wikipedia definition, if
  4. you have never played the game: http://en.wikipedia.org/wiki/Conway's_Game_of_Life.
  5.  
  6. Here is how our implementation will work:
  7. (1) The program will ask the user to enter a filename from the console. (Just like the last assignment).
  8. (2) The initial configuration will be read in from a file, which will be a 12 by 30 two-dimensional array of characters. The game board will be surrounded by all O's.
  9. (3) The game will be played on 10 by 28 two-dimensional array. (Can you guess why?). A period ('.') will represent a dead cell and an 'X' will represent a live cell.
  10.  
  11. You will be severely penalized if your program does not have at least three functions.
  12.  
  13.  
  14.  
  15. View solution (interface must match)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement