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:
- correctness: (6 points)
- correct algorithm and results (incl. thorough testing)
- robustness (e.g. no division by zero)
- following the specification (e.g. output specification)
- style: (4 points)
- use of comments
- indentation (use TAB key in emacs)
- meaningful variable and function naming
- simplicity, modularity etc.