Does someone have the solution for this?
I know this isn't homework serice
I have no idea where to start off.......
I don't want a game of life applet, just simple codes that can compile and run.
pm, post if you do. thanks so much.
Can someone help me make codes for this program?
I don't understand this question.
The Game of Life (most of you would be familiar with) consists of a two- dimensional plane of cells. each cell may be empty or contain a single creature. Each day, creatures are born or die according to the number of cells neighbouring them (any cell around them is a neighbour).
if the number of alive neighbours is 2 or 3 then the cell lives, otherwise it dies.
if the number of alive neighbours is exactly 3 then the cell becomes alive. (if its 2or 4 then it wont become alive).
0s represents the cells in the world.
Xs represent cells alive.
example of the world -
0000000000
0000000000
000XXX0000
0000000000
0000000000
0000000000
next day -
0000000000
0000X00000
0000X00000
0000X00000
0000000000
0000000000
make a 20x20 grid. to initialize , prompt user for coordinates of live cells. application should generate each day's world as long as the wishes to continue or until there are no more live cells.