subject
Engineering, 10.12.2019 19:31 sierrawalk2283

The universe of conway's game of life is an infinite, two-dimensional orthogonal grid of cells, each of which is in one of two possible states: alive or dead. every cell interacts with its eight neighbors, which are the cells that are horizontally, vertically, or diagonally adjacent (upper left, top, upper right, right, lower right, bottom, bottom left, left). at each step in time, the following transitions occur: any live cell with fewer than two live neighbors dies due to under-population. any live cell with two or three live neighbors lives on to the next generation (no change).any live cell with more than three live neighbors dies due to overpopulation. any dead cell with exactly three live neighbors becomes a live cell by reproduction. the initial pattern constitutes the seed if the system (starts it off). the first generation is created by applying the above rules simultaneously to every cell in the seed; births and deaths occur simultaneously, and the discrete moment at which this happens is called a "tick". each generation is a pure function of the preceding one, and the rules continue to be applied repeatedly to create further generations. objectivethis project will involve substantial codingto gain a deep understanding of how to get and set values in 2-d arrays. to gain a deep understanding of iterating over arrays using for and nested for loops. to gain a deep understanding of creating and calling functions from main that pass a variety of parameters, including statically-allocated 2d arrays. to practice recognizing repeated code and breaking down code into functionspractice using string building/concatenationto gain skills in ad-hoc code development, testing, and debugging your own version of conway's game of life that runs in the terminal, according to the rules in the description. an example executable demo_conway has been provided for you. to run, maximize your terminal window and run ./demo_conway. press ctrl+c to make it stop.

ansver
Answers: 2

Another question on Engineering

question
Engineering, 03.07.2019 14:10
The y form of iron is known as: a) ferrite b) cementite c) perlite d) austenite
Answers: 3
question
Engineering, 04.07.2019 16:10
An electrical motor raises a 50kg load at a construct velencity .calculate the power of the motor, if it takes 40sec to raise the load through a height of 24m(take g =9.8n/g)
Answers: 2
question
Engineering, 04.07.2019 18:10
Fluids at rest possess no flow energy. a)- true b)- false
Answers: 3
question
Engineering, 04.07.2019 18:10
Water at 55c flows across a flat plate whose surface temperature is held constant at 95c. if the temperature gradient at the plate's surface for a given value of x is 18 c/mm, find a) local heat transfer coefficient. b) heat flux
Answers: 3
You know the right answer?
The universe of conway's game of life is an infinite, two-dimensional orthogonal grid of cells, each...
Questions
question
English, 31.10.2020 01:00
question
English, 31.10.2020 01:00
question
Chemistry, 31.10.2020 01:00
Questions on the website: 13722361