Question: Implement a class GameOfLife that simulates Conways Game of Life. Consider a boolean matrix corresponding to a system of cells that we refer to as
Implement a class GameOfLife that simulates Conway’s Game of Life. Consider a boolean matrix corresponding to a system of cells that we refer to as being either live or dead. The game consists of checking and perhaps updating the value of each cell, depending on the values of its neighbors (the adjacent cells in every direction, including diagonals). Live cells remain live and dead cells remain dead, with the following exceptions:
• A dead cell with exactly three live neighbors becomes live.
• A live cell with exactly one live neighbor becomes dead.
• A live cell with more than three live neighbors becomes dead.
Initialize with a random boolean matrix, or use one of the starting patterns on the booksite. This game has been heavily studied, and relates to foundations of computer science (see the booksite for more information).

time t time t+1 time t + 2 time t+3 Five generations of a glider . timet +4
Step by Step Solution
3.45 Rating (148 Votes )
There are 3 Steps involved in it
To implement a class GameOfLife that simulates Conways Game of Life we will follow these steps 1 Define the GameOfLife class with a constructor that i... View full answer
Get step-by-step solutions from verified subject matter experts
