I have an assignment of making game of life in language "C".
My problem is:
"The game of Life takes place on a 2d array of cells, each of which may contain an organism. Let occ(i) be the no. of cells adjacent to cell i that are occupied by an organism is obtained from the previous generation appling the following rules:
1.An organism in cell i survive to the next generation if 2<=occ(i)<=3 otherwise it dies.
2.An organism born in emty cell i if 2<=occ(i)<=3 otherwise it remains empty.
Write a program that reads initial configuration of occupied cells and print a series of generation. Note that the program of must maintain two copies of the configuration. Since all changes occur simultaneously."
please give me source code of this problem?