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.




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

Adam Marshall ©University of Liverpool, 1996
Fri Dec 6 14:10:26 GMT 1996