Homework Assignemnt #2 User Manual LIFE USER MANUAL (version 1.1) A. INTRODUCTION This program is designed to mimic the game of life. It simulates a two-dimensional world where single- celled organisms thrive. You have control over how many generations of these creatures are produced. The creatures are represented by *'s on the screen. In order to try this out, you must first create an executable file. I. CREATING THE EXECUTABLE FILE Type make at the Unix prompt. This will compile the two .cc files, and include the .h files. A file by the name of Life will be created. II. EXECUTING THE LIFE FILE To execute the Life file, you need only type "Life" at the command line. This will run the program in INTERACTIVE mode, and will load a file called "initial" as the world to test. When you type "Life" at the prompt, there are several options you may include. These options are outlined under IV. COMMAND LINE OPTIONS. III. OPERATION MODES There are two modes in which the program can be run. The default is INTERACTIVE mode. a) INTERACTIVE MODE In this mode you will be propted after each generation as to whether or not you want to see another generation. If you type Y or y followed by anything else, the next generation will be shown. If you don't enter a Y or y, the program will end. b) NON-INTERACTIVE MODE Int this mode, a specified number of generations will be calculated. This number is specified on the command line. After these generations have been calculated, the final generation will be output, as will the amount of time these generations took to calculate. Note: In either mode the program will stop when all the cells have died. IV. COMMAND LINE OPTIONS There are two options that may be added to the command line when you type Life. These are as follows: -b NON-INTERACTIVE MODE This flag tells the program that you want to run the program in non-inter- active mode. The "-b" must be followed by a non-negative integer which is the number of generations you want to see. -i INPUT FILE This flag tells the program that you want to load the world from a file other than the default "initial". The -i must be followed by a filename. These flags can be used in any order, and may be used more than once. If they are used more than once, only the last one will be the one that the program recognizes.