Homework 9

The "Game of Life" simulates the life of certain organisms. An empty cell with exactly 3 (of 8 possible) living neighbors will come alive. A living cell with less than 2 or more than 3 living neighbors will die.

Your assignment is to complete the code that I gave you (~jmache/cs1/life.c)
For comparison reasons, you can run ~jmache/cs1/life or click here.

You get x-tra credit if you make sure that (1) the program is robust and/or (2) the matrix "wraps around".

Remember:
It is due We 4/7, late homeworks will be penalized !
Turn in a print-out of your code and a scriptfile.
You will be graded on:

  1. correctness: (6 points)
  2. style: (4 points)