Implement a new version of the gameoflifepy program to use


1. Implement a new version of the gameoflife.py program to use your SparseLifeGrid class from the previous question.

2. Repeat Exercise 2.5 from Chapter 2 but use your new version of the gameoflife.py program from the previous question.

Exercise 2.5:

Use your program from Exercise 2.4 to experiment with the initial configurations shown in Figure 2.15. Answer the following questions for each configuration using a variety of grid sizes and assuming no more than 10 generations.

(a) Does the configuration die out?

(b) Does the configuration become stable?

(c) Does the configuration become an oscillator?

(d) How many generations were required before each configuration resulted in one of the states indicated in parts (a) - (c)?

1684_diagram.png

Exercise 2.4:

Modify the gameoflife.py program to prompt the user for the grid size and the number of generations to evolve.

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Implement a new version of the gameoflifepy program to use
Reference No:- TGS01715614

Expected delivery within 24 Hours