• 100% Satisfaction Guarantee
Category: Homework
Satisfied Customers: 3040
Experience:  MIT Graduate (Math, Programming, Science, and Music)
3546829
Scott is online now

# You will design, implement, and test a program that runs the

### Customer Question

You will design, implement, and test a program that runs the game of life in C++. Conway’s Game of Life is a standard example of a cellular automaton. This means that you have an array or matrix of cells. Each turn or generation the value of each cell may change based upon its neighbors. he rules are: Each cell has eight neighbor cells. The neighbors are the cells directly above, below, to the
right, to the left, diagonally above to the right and left, and diagonally below to the right and left.
1. If an occupied cell has zero or one neighbor, it dies of loneliness.
2. If an occupied cell has more than three neighbors, it dies of overcrowding.
3. If an empty cell has exactly three occupied neighbor cells, there is a birth of a new cell
to replace the empty cell.
4. Births and deaths are instantaneous and occur at the changes of generation.
There are significant initial questions that you must address in your design. We will limit the visible “world” to 40 x 20 cells. That’s a lot of characters to type in from the keyboard so don’t make the user do it. You must give the user the option for one of three starting shapes in the grid; an oscillator, a glider, and a glider cannon.
You will need to handle the cells on the edges. Remember this is a window on an infinite grid. The patterns go on forever. You are just showing them while they are visible in this small window. You may not be able to just stop the patterns at the edge as that may change the behavior. Specifically, any pattern should not change as the object moves out of the visible grid.
After you have everything designed, coded, and tested add an option for the user to specify the starting location of the selected pattern. They will specify a single cell. Make it clear which cell of the pattern they are using. Otherwise they could put a glider at an edge and the glider moves away and they never see it!
Submitted: 1 year ago.
Category: Homework
Expert:  Ingo U replied 1 year ago.

Hi,

a few questions for you:

- What platform / compiler/ tools are you using?

Thanks,

Ingo U

Customer: replied 1 year ago.
I am using Microsoft visual studio 2013, I have been using anything that I can find.The deadline is tonight.
Customer: replied 1 year ago.
Ingo,Are you currently working on this?
Expert:  Ingo U replied 1 year ago.

Sorry, that timeframe is too tight for me today. I'll opt out and hopefully someone will be with you shortly.

-Ingo

Expert:  Ingo U replied 1 year ago.

Sorry to see nobody has jumped in. If there is any way you can extend the deadline, I could possibly work on this tomorrow - would you still be interested in a solution? I'll check back in the morning.
Regards,

Ingo