home *** CD-ROM | disk | FTP | other *** search
Turbo Pascal Compiled 8bit CP/M-80 COM | 1986-02-11 | 17.3 KB | 94 lines |
- Copyright (C) 1984 BORLAND Inc
- Pseudo TeleVideo 910P
- C0000
- ^#V#N#F
- s#r#q#p
- #^#V
- 9^#Vh&
- |/g}/o#
- T]=o`9y
- T9^K#
- 8/<oz
- T9^K#
- oGOW_g
- `1pF,
- w###6
- ##N#F*
- Nw#Fw
- q#p#6
- #w#w#w
- TRUEFALSE
- N#F#s#r
- N#F#^#V
- " C}=(
- F+N+++V+^
- q#p##
- User break
- Run-time
- error
- , PC=
- Program aborted
- 6 N#--type an N and then any positive integer; the next
- . # generations are computed and displayed.
- 6 S#--type an S and then any positive integer; the next
- 7 # generations are computed and the last displayed.
- : Q#--type a Q and any integer in order to QUIT the current
- 5 grid. You will then be able to start a new one.
- You may have a maximum of !i
- rows in your grid.
- 3 How many rows do you want for your grid (remember,
- 8 no creatures are allowed in the first or last row)?
- You may have a maximum of !\
- columns in your grid.
- 6 How many columns do you want for your grid (remember,
- ; no creatures are allowed in the first or last column)?
- ? Type the character you want to represent a creature ------->
- ? Type the character you want to represent a NONcreature ---->
- @ While the terminal display will have no spaces between the grid
- C characters, you may have a blank space between the grid characters
- C on the printout. Do you want a blank separating characters?
- 9 WARNING: Your grid will have too many columns to fit on
- < one line of the printout. You will therefore get
- 8 wrap-arounds, but your grid will still print.
- A Do you want a random first generation (type r) or do you want to
- . make your own first generation (type s)?
- > Do you want BOTH the number and the placement of creatures to
- < be random (type b) or only the placement of creatures to be
- random (type p)?
- < What fraction (between 0 & 1) of your first generation grid
- 8 do you want to be occupied (i.e., have creatures)?
- GENERATION *
- Frac. Occ. = *
- GENERATION *
- Frac. Occ. = *
- C O L U M N
- row*A
- 5 This is your first generation grid as it now stands:
- C O L U M N
- row*A
- row*?
- GENERATION 1
- row*?
- ! Fraction Nonborder Occupied =
- row*A
- ) Do you want to make any corrections?
- Row of mistake ----->
- Column of mistake -->
- + Desired creature or non-creature character
- for this location ---->
- Any more corrections?
- s#r*5
- > This program is the game of life. It has a great many extra
- ? features that will become apparent as the program is executed.
- ? The rules of life are that a creature will survive in the next
- C generation only if there are exactly 2 or 3 neighboring creatures.
- A A creature is born in the next generation if there are exactly 3
- A creatures surrounding the non-creature grid space. NO CREATURES
- ) ARE PERMITTED IN THE BORDER OF THE GRID.
- B Turn the printer off. Turn the knob on the printer to set a page
- 5 so it's at the top of a sheet. Turn the printer ON.
- $ Did you follow the instructions?
- ( Type N# S# Q# or H4(for help) ---->
- : Do you want to start over with a new first generation?
- Do you want to star
-