next up previous contents
Next: Solution Up: Procedures Previous: Solution

 

Life in a Procedure

The aim of this exercise is to rewrite the distributed Game of Life with the iterations of the update of the system done in a subroutine.

The subroutine should take the array board and the number of iterations as inputs. Within the subroutine, the update should be performed and the result printed to file as before. All iterations of the update should be done in this subroutine.

Go back to Notes gif




next up previous contents
Next: Solution Up: Procedures Previous: Solution

©University of Liverpool, 1997
Thu May 29 10:11:26 BST 1997
Not for commercial use.