|
|||||||||||||||||
Problem Set 8: Life Assigned: Saturday April 2, 2016 Due: Tuesday April 12, 2016, midnight Points: 10 up to 16 This is a pair project. Let a staffer know if you need help finding a partner.
Conway's Game of LifeThe mathematician John Conway invented a cellular automta called the Game of Life. Although he had many other achievements, this is what he is best known for among non-mathematicians.The game of life consists of a two-dimensional grid of cells. At any given time, every grid element is either "alive" or not. The colony takes an evolution step and a new colony develops from the old one. The single-step evolution rule is simple: the element at row, col is alive in the new generation if
For example, using '*' for alive and '.' for not, one evolution step would be:
This problem set is an exercise in working with 2D arrays to model the evolving colony of cells. The initial configuration is given in a text file using '*' for the initial live elements. Your program should read the file into a 2D array and use the graphics library to render the colony graphically. For example, the input file one.txt should produce the repeating sequence of colonies shown in this video: There are three versions of this problem set.
|