0

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.

2
Contributors
1
Reply
2
Views
7 Years
Discussion Span
Last Post by BestJewSinceJC
0

No, we can't code for you. If you want help ask a detailed question. And if you have no idea at all where to start, start by reading about 2D arrays and think about how they can aid you in creating your "world".

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.