Assignment 11, due Nov 15
Part of
the homework for 22C:60, Fall 2004
|
Always, on every assignment, please write your name legibly as it appears on your University ID and on the class list! All assignments will be due at the start of class on the day indicated, and unless there is what insurance companies call "an act of God" - something outside your control; the only exceptions to this rule will be by advance arrangement.
a) Your current solution to the Game of Life has infinite outer loop that runs generation after generation. Give the code you would add at the end of this loop to exit the loop, allowing the commands above to be interpreted. (This asks just for a few instructions to exit the loop, not the entire code for command interpretation).
b) Once the game is halted, how would you get characters from the keyboard to interpret as commands. (Is there a Hawk monitor routine that would work? If not, why not, and what would you use instead?)