Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey everyone, I need help in making this project. Please help me THANKS.. Language is C++ and I am making it in Visual Studio 2017

Hey everyone, I need help in making this project.

Please help me THANKS..

Language is C++ and I am making it in Visual Studio 2017 Community Version.

image text in transcribed

The Game of Life was invented by Cambridge mathematician John H. Conway to model the process of birth, survival and death. By the rules of the game, indiviuals require others to survive, but die as the result of overrowding. Purpose Practice using and manipulating two dimensional the command line as well as from within the program. This file can he created using any text editor, such as notepad (do mot use a word processor). arrays, For our world, we will use a 3-dimensional array of chars (hinkof this as two layers of 2-dimesioual arays of chars) (mininrum sice: 2x 2040Oe level will be the curreat world, the olber will hold the ext generation. Each cell in the array holds cithcr a-*" (a live organism) or a blank-" no organism). The gamc starts out with an initial gencration, which consists of any mix of stars and blanks. This original array will be read in from a text filc specified by the user. The program should allow this to comc in from practice in Three riles govern the transition from one generation to the next a. Birth Rule: an organism is born into an empty cell that has exactiy three iving neighbors. b. Survival Rule: An organism survives from one generation to the next if it has either 2 or 3 living neighbor c. Death Rule: An organism dies from loneliness if it has fewer than 2 neighbors. It dies from overcrowding if it has 4 or more neighbors. techniques. A neighbor of a cell is any of the & possible cells that touch it. In the array to the lefi, the cells labeled "x" are all eighbors of te cell marked"*": XBe careful whe loking at the cells al the edge of the world Do not go out of bounds! DUE: In your version of the game, you will display the world one generation at a time, clearing the screen between each generation. The user will press Enter to contimue, and some other key toquit. Make Sure you test fully! Results depend on the initial colony. Some possible results: Section A: The colony quickly dies out The colouy rapidly expauds stopped only by the edge of the world) March 12, 2018, 9:30 a.m. beginning of class) the colony reaches a set st . the colony reaches an oscillating stasis (moves back mad forth henveen ? or more con fgtranons) asis hprogrom, ofcouse, shoudd use top down design, and must uzlize mocharhy designed ftionas. Some suggestions for functions you should ulsze: a function to read the file into lhe grid n to count the neighbors of any one cell prvicner fiancticn) a fiction o calculate the next generaon fwwhich shauicd ci t a function to print out one generation others (as determined by your group)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Differentiate tan(7x+9x-2.5)

Answered: 1 week ago

Question

Explain the sources of recruitment.

Answered: 1 week ago

Question

Differentiate sin(5x+2)

Answered: 1 week ago

Question

Compute the derivative f(x)=1/ax+bx

Answered: 1 week ago