home *** CD-ROM | disk | FTP | other *** search
Turbo Pascal Compiled 8bit CP/M-80 COM | 1994-07-13 | 23.0 KB | 256 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
- IThe scoring and other rules are given below; you will be given your score
- &only after the completion of a trip.
- For each new chip you will get !
- points.
- For each old chip you will get !
- point.
- points.
- BFor arriving at Alpha you will get the following number of points:
- 1st time ---> !
- 2nd time ---> !
- 3rd time ---> !
- subsequent times ---> !
- #For arriving at Beta you will get !
- points each time.
- #For arriving at Gamma you will get !#
- points each time.
- KIf you obtain a complete set of Alpha chips you will be told so and also be
- awarded a bonus of !d
- points.
- CThere are more rules; when you're ready to read them, hit return. !
- IYou may end your trip and go home. To do this, answer zero (type 0) when
- Iasked for how many chips you want. You will then be asked if you want to
- Igo home. Any money you have left will be converted to points at the rate
- dollars per point.
- MI M P O R T A N T : If you request too many chips you will be warned about
- Hit. "too many" does not neccessarily mean that you don't have the money
- Jthat it would cost to buy the chips. "too many" just means that you would
- Jbe left with less money than a certain minimum amount if permitted to pur-
- Gchase the number of chips you requested. RECEIVING A WARNING SUBTRACTS
- :POINTS FROM YOUR SCORE ACCORDING TO THE FORMULA: (n-1) x !
- Hwhere n is the number of warnings you've gotten during the current trip.
- Good Luck
- Space Cadet!
- Space Captain!
- Space Avenger!
- You have obtained chip Alpha-*
- You now have a second Alpha-*
- chip.
- This gives you a third Alpha-*
- chip.
- You now have !u
- Alpha-*
- chips.
- You have obtained chip Alpha-*
- You now have a second Alpha-*
- chip.
- This gives you a third Alpha-*
- chip.
- You now have !u
- Alpha-*
- chips.
- You have obtained chip Beta-*
- You now have a second Beta-*
- chip.
- This gives you a third Beta-*
- chip.
- You now have !q
- Beta-*
- chips.
- You have obtained chip Beta-*
- You now have a second Beta-*
- chip.
- This gives you a third Beta-*
- chip.
- You now have !q
- Beta-*
- chips.
- You have obtained chip Gamma-*
- You now have a second Gamma-*
- chip.
- This gives you a third Gamma-*
- chip.
- You now have !n
- Gamma-*
- chips.
- You have obtained chip Gamma-*
- You now have a second Gamma-*
- chip.
- This gives you a third Gamma-*
- chip.
- You now have !n
- Gamma-*
- chips.
- MThis program is a game called "CHIPS." The main idea is to do some detective
- Lwork in order to discover the restrictions and algortihms of the game. Most
- Himportant of all is to EXPERIMENT--purposely trying all sorts of things.
- /* * * * KEEP PAPER AND PENCIL HANDY * * * * *
- /* * * * EXPERIMENT AND NOTE RESULTS * * * * *
- /* * * * KEEP TRACK OF YOUR BALANCE * * * * *
- KYOUR MISSION: Collect all the computer chips you can--preferably different
- K ones. Try to get a complete set of Alpha chips. Your score
- ? indicates the degree of success of your mission.
- CHINTS: Try to EXPERIMENT to find out answers to such questions as:
- , 1.) How many alpha chips are there?
- 5 2.) How much money can I take to start with?
- L 3.) What is the minimum balance I must have after purchasing chips?
- & many others.
- 7Please give a name for a file to record this trip--->
- NYou may print or display this file on the terminal after exiting this program.
- Do you want to see the rules?
- OK, Good luck
- Space Cadet!
- Space Captain!
- Space Avenger!
- 7How much money are you going to take with you (between !
- is suggested)?
- Negative money is nonsense!
- You must take at least 1 dollar.
- 1I'm sorry, we can't let you take that much money.
- BEGINNING BALANCE = *
- Welcome to Alpha!
- You have visited Alpha *
- times counting this one.
- Welcome to Alpha!
- You have visited Alpha *
- times counting this one.
- It cost you !
- dollars to get here.
- It cost you !
- dollars to get here.
- (How many chips would you like (they are !
- dollars each)?
- [you asked for *
- chips.]
- [you asked for 1 chip.]
- 'A negative number of chips is nonsense!
- (I'm sorry we don't have that many chips.
- (I'm sorry we don't have that many chips.
- Do you want to go home?
- [you said you wanted to go home]
- KI'm sorry, we feel that you cannot afford to spend that much money. Please
- Lreevaluate your situation and give us a new request. If your new request is
- Kagain unsuitable, we will take the money that it would cost you but without
- giving you the chips.
- KI'm sorry, we feel that you cannot afford to spend that much money. Please
- Lreevaluate your situation and give us a new request. If your new request is
- Kagain unsuitable, we will take the money that it would cost you but without
- giving you the chips.
- "Now, how many chips do you want?
- [you then asked for *
- chips.]
- [you then asked for 1 chip.]
- 'A negative number of chips is nonsense!
- )I'm sorry, we don't have that many chips.
- +Do you want to end this trip and go home?
- &[you then said you wanted to go home.]
- Welcome to Beta!
- Welcome to Beta!
- CIt cost you nothing to get here. Seeing that someone took all your
- &money, we will give you one free chip.
- CIt cost you nothing to get here. Seeing that someone took all your
- &money, we will give you one free chip.
- It cost you *
- 5 dollars to get here. We have taken that, but we are
- giving you *
- / dollars so that you may continue your journey.
- !Meanwhile here is a chip for you.
- It cost you *
- 5 dollars to get here. We have taken that, but we are
- giving you *
- / dollars so that you may continue your journey.
- !Meanwhile here is a chip for you.
- 9Welcome to Gamma! It cost you only 1 dollar to get here.
- Welcome to Gamma! It cost you *
- dollars to get here.
- 9Welcome to Gamma! It cost you only 1 dollar to get here.
- Welcome to Gamma! It cost you *
- dollars to get here.
- Here is a chip for you.
- Here is a chip for you.
- CCongratulations, you have obtained a complete set of Alpha chips!!!
- You are hereby awarded !d
- # bonus points for your achievement.
- GFor your information, the probability of obtaining the complete set was
- *. This probability is based on the number
- of Alpha chips you got (*
- #) and the number of different Alpha
- Bchips in the collection. Your score award, however, didn't depend
- on this probability.
- CCongratulations, you have obtained a complete set of Alpha chips!!!
- You are hereby awarded !d
- # bonus points for your achievement.
- GFor your information, the probability of obtaining the complete set was
- *. This probability is based on the number
- of Alpha chips you got (*
- #) and the number of different Alpha
- Bchips in the collection. Your score award, however, didn't depend
- on this probability.
- DSince you ended your trip, you were entitled to convert any leftover
- money to points at the rate of !
- dollars per point.
- +These points have been added to your socre.
- DSince you ended your trip, you were entitled to convert any leftover
- money to points at the rate of !
- dollars per point.
- +These points have been added to your socre.
- &* * * * * YOUR SCORE FOR THE TRIP IS *
- * * * * *
- &* * * * * YOUR SCORE FOR THE TRIP IS *
- * * * * *
- @You have collected enough chips to be promoted to Space Captain!
- @You have collected enough chips to be promoted to Space Captain!
- HIn addition to your score award, you have been promoted to Space Avenger
- 3for having collected a complete set of Alpha chips.
- HIn addition to your score award, you have been promoted to Space Avenger
- 3for having collected a complete set of Alpha chips.
- AYou have obtained a sufficient number of chips to be promoted to
- Space Captain!
- Space Avenger!
- AYou have obtained a sufficient number of chips to be promoted to
- Space Captain!
- Space Avenger!
- BFor your information the probability of you obtaining the complete
- set of Alpha chips was
- zero.
- @This probability is based on the number of Alpha chips you got (*
- :and the number of different Alpha chips in the collection.
- BFor your information the probability of you obtaining the complete
- set of Alpha chips was
- zero.
- @This probability is based on the number of Alpha chips you got (*
- :and the number of different Alpha chips in the collection.
- 'Would you like to take another trip?
- Goodbye!
- 'Would you like to take another trip?
-