Answered step by step
Verified Expert Solution
Question
1 Approved Answer
'm in java one and need help with this code. please follow the given directions and test your program to make sure it works as
'm in java one and need help with this code. please follow the given directions and test your program to make sure it works as it is required. I will apreciate your help. thank you.please use the given code.
here is the code cp ~svlasnik/1400samples/Life.java NetID_Life.java
You are going to be implementing the classic computer science simulation, Conway's Game of Life Conway's Life is played on a matrix of cells, kind of like a chess board but theoretically extending infinitely in every direction. Each individual cell in the matrix can either be alive or dead. A live cell in the matrix is shown in our simulation by printing an asterisk (*) to the screen. A dead cell is shown by leaving that area of the matrix in the display empty Each cell has a "neighborhood" consisting of the eight cells in every direction around it, including diagonals. Cells on the edges of the matrix may not have eight "true" neighbors, but we will assume that their neighbors that would be off the matrix are considered to always be dead cells From generation to generation, whether or not a cell survives or has life born into it depends on how many neighbors it has. Some examples follow. Please note that these eight examples are not the only possible scenarios that your program might encounter. In each of these examples, we are focusing on what happens to the middle cell in these examples from one generation to the next .A dead middle cell with exactly three live neighbors becomes a live cell in the next generation (birth) The middle cell would become live in the next generation because it has exactly 3 live neighbors The middle cell would become live in the * next generation because it has exactly 3 live neighbors A live middle cell with two or three live neighbors stays alive in the next generation (survival) The middle cell would survive to the next *The middle cell would survive because it **generation because it has two live has three live neighbors neighborsStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started