Game of Life. Implement a class Game OfLife 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 boo ksite. This game has been heavily studied, and relates to foundations of computer science (see the book site for more information).
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here