Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_52.ADF » V/+BTEAS1

V/+BTEAS1

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_52.ADF
Filename: V/+BTEAS1
Read OK:
File size: 1268 bytes
Load address: 2B204556
Exec address: 41455442
Duplicates

There are 3 duplicate copies of this file in the archive:

File contents
                             BRAINTEASERS
                            By G. Ludinski

THIS EUG begins a series of articles and utilities with a mathematical
bias entitled BRAINTEASERS; each program designed to puzzle and amuse 
its users. Brief instructions are given on screen before each puzzle 
begins while detailed documentation on the programs themselves can be
viewed if you wish to try your hand at changing any elements of them.

HEXAGON PUZZLE
YOU are really up against the clock on this one as you must solve as
many puzzles as possible, in just 200 seconds. A series of numbers, or
letters, will be positioned around five of the sides of a hexagon and
you will be asked to provide the missing letter or number. The relation-
ship between the numbers or letters may be with their corresponding 
number or letter on the opposite side of the hexagon, or it may follow
in sequence from an adjacent number.
   The decision is yours.

How to play
Key in the number, or letter, of your choice and press <RETURN>.

Programming hints
This program has a timer that displays the time in seconds on the screen
while the computer is waiting for the player to key in something. This 
is a very useful facility and is done by setting the system variable 
TIME to zero at the start of the program. Time will then hold the time 
in seconds multiplied by 100. This can be displayed on occasions 
throughout the program but is more effective being displayed constantly,
especially when the program is waiting for the player to key in some-
thing. This is done by using INKEY$(10) in a loop which keeps checking 
if a key has been pressed and, if it has not, it displays the time (see
line 470). When a key has been found to be pressed, the program waits 
for the rest of the digits to be keyed and knows you have finished when
the <RETURN> key is pressed, i.e. GET$=CHR$(13).
   One change to make the puzzle easier, is to reduce the size of the
numbers used. S(2) on line 150 is the value of the first number in the
sequence if the pattern is a sequence of numbers going around the hexa-
gon. IC on line 160 is related to the interval between the numbers going
round the hexagon. So if the 9 in line 150 is changed to a smaller 
number and IC is always 1 this will make the puzzle easier.
   If you wish to make the puzzle more difficult (and you must be brave
or a genius to want to do so), then you could either increase the poss-
ible values of S(2) or IC or increase the number of different types of
sequence. At present there are five types of sequences depending on
whether W is 0 to 4. If you allow W to become 5 or larger in line 170,
you could add a new sequence type for W=5 after line 230.

SAFE-CRACKER
ARE you a quick-thinker or a deep thinker? I hope you are one or the
other, or you will never be able to crack open someone else's safe!
   This game can be played two different ways, depending on whether you
are a quick or a deep thinker. If you are not sure which you are, then I
suggest you play it both ways, and find out which gives you the highest
score.
   In all cases, a closed safe is displayed and you are given two clues
about the secret code that opens it. If you work out the exact answer
before keying in the code, you are given two minutes to do it. If you
make guesses, then you are only allowed sixteen seconds. Wrong answers
are ignored.
   If you take too long, you are surprised by the caretaker who switches
on the light. He then presses the alarm button and you hear the police
sirens wailing and you know all is lost.
   If you do manage to crack the code in time, the safe opens revealing
gold bullion.

How to play
You are given two clues and the code is always a two digit number. Key 
in the number. You do not need to press <RETURN>.
   To end the program, press E.

Programming hints
This program contains two useful procedures: PROC BLOCK draws a rectan-
gle whose lower left hand corner is X,Y and whose width is W and height
is H. PROC_PARLL draws a parallelogram with two sides vertical. Put the
coordinates of the lower, left-hand corner in X1, Y1 and those of the
upper right hand corner in X2, Y2.
   If you want to make the game easier, you can increase the time 
allowed to guess or reduce the number of digits allowed in the code or
both.
   To increase the time allowed for guesses, increase the value of TM in
line 240. To increase the time allowed when only one answer is keyed in,
increase the value of TM in line 220.
   To reduce the number of digits allowed, reduce the number inside the
RND brackets for XX and YY in line 520.
   If you find the game too easy then do the opposite.
                                             Genevieve Ludinski, EUG #52
00000000  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000010  20 20 20 20 20 20 20 20  20 20 20 20 20 42 52 41  |             BRA|
00000020  49 4e 54 45 41 53 45 52  53 0d 20 20 20 20 20 20  |INTEASERS.      |
00000030  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
00000040  20 20 20 20 20 20 42 79  20 47 2e 20 4c 75 64 69  |      By G. Ludi|
00000050  6e 73 6b 69 0d 0d 54 48  49 53 20 45 55 47 20 62  |nski..THIS EUG b|
00000060  65 67 69 6e 73 20 61 20  73 65 72 69 65 73 20 6f  |egins a series o|
00000070  66 20 61 72 74 69 63 6c  65 73 20 61 6e 64 20 75  |f articles and u|
00000080  74 69 6c 69 74 69 65 73  20 77 69 74 68 20 61 20  |tilities with a |
00000090  6d 61 74 68 65 6d 61 74  69 63 61 6c 0d 62 69 61  |mathematical.bia|
000000a0  73 20 65 6e 74 69 74 6c  65 64 20 42 52 41 49 4e  |s entitled BRAIN|
000000b0  54 45 41 53 45 52 53 3b  20 65 61 63 68 20 70 72  |TEASERS; each pr|
000000c0  6f 67 72 61 6d 20 64 65  73 69 67 6e 65 64 20 74  |ogram designed t|
000000d0  6f 20 70 75 7a 7a 6c 65  20 61 6e 64 20 61 6d 75  |o puzzle and amu|
000000e0  73 65 20 0d 69 74 73 20  75 73 65 72 73 2e 20 42  |se .its users. B|
000000f0  72 69 65 66 20 69 6e 73  74 72 75 63 74 69 6f 6e  |rief instruction|
00000100  73 20 61 72 65 20 67 69  76 65 6e 20 6f 6e 20 73  |s are given on s|
00000110  63 72 65 65 6e 20 62 65  66 6f 72 65 20 65 61 63  |creen before eac|
00000120  68 20 70 75 7a 7a 6c 65  20 0d 62 65 67 69 6e 73  |h puzzle .begins|
00000130  20 77 68 69 6c 65 20 64  65 74 61 69 6c 65 64 20  | while detailed |
00000140  64 6f 63 75 6d 65 6e 74  61 74 69 6f 6e 20 6f 6e  |documentation on|
00000150  20 74 68 65 20 70 72 6f  67 72 61 6d 73 20 74 68  | the programs th|
00000160  65 6d 73 65 6c 76 65 73  20 63 61 6e 20 62 65 0d  |emselves can be.|
00000170  76 69 65 77 65 64 20 69  66 20 79 6f 75 20 77 69  |viewed if you wi|
00000180  73 68 20 74 6f 20 74 72  79 20 79 6f 75 72 20 68  |sh to try your h|
00000190  61 6e 64 20 61 74 20 63  68 61 6e 67 69 6e 67 20  |and at changing |
000001a0  61 6e 79 20 65 6c 65 6d  65 6e 74 73 20 6f 66 20  |any elements of |
000001b0  74 68 65 6d 2e 0d 0d 48  45 58 41 47 4f 4e 20 50  |them...HEXAGON P|
000001c0  55 5a 5a 4c 45 0d 59 4f  55 20 61 72 65 20 72 65  |UZZLE.YOU are re|
000001d0  61 6c 6c 79 20 75 70 20  61 67 61 69 6e 73 74 20  |ally up against |
000001e0  74 68 65 20 63 6c 6f 63  6b 20 6f 6e 20 74 68 69  |the clock on thi|
000001f0  73 20 6f 6e 65 20 61 73  20 79 6f 75 20 6d 75 73  |s one as you mus|
00000200  74 20 73 6f 6c 76 65 20  61 73 0d 6d 61 6e 79 20  |t solve as.many |
00000210  70 75 7a 7a 6c 65 73 20  61 73 20 70 6f 73 73 69  |puzzles as possi|
00000220  62 6c 65 2c 20 69 6e 20  6a 75 73 74 20 32 30 30  |ble, in just 200|
00000230  20 73 65 63 6f 6e 64 73  2e 20 41 20 73 65 72 69  | seconds. A seri|
00000240  65 73 20 6f 66 20 6e 75  6d 62 65 72 73 2c 20 6f  |es of numbers, o|
00000250  72 0d 6c 65 74 74 65 72  73 2c 20 77 69 6c 6c 20  |r.letters, will |
00000260  62 65 20 70 6f 73 69 74  69 6f 6e 65 64 20 61 72  |be positioned ar|
00000270  6f 75 6e 64 20 66 69 76  65 20 6f 66 20 74 68 65  |ound five of the|
00000280  20 73 69 64 65 73 20 6f  66 20 61 20 68 65 78 61  | sides of a hexa|
00000290  67 6f 6e 20 61 6e 64 0d  79 6f 75 20 77 69 6c 6c  |gon and.you will|
000002a0  20 62 65 20 61 73 6b 65  64 20 74 6f 20 70 72 6f  | be asked to pro|
000002b0  76 69 64 65 20 74 68 65  20 6d 69 73 73 69 6e 67  |vide the missing|
000002c0  20 6c 65 74 74 65 72 20  6f 72 20 6e 75 6d 62 65  | letter or numbe|
000002d0  72 2e 20 54 68 65 20 72  65 6c 61 74 69 6f 6e 2d  |r. The relation-|
000002e0  0d 73 68 69 70 20 62 65  74 77 65 65 6e 20 74 68  |.ship between th|
000002f0  65 20 6e 75 6d 62 65 72  73 20 6f 72 20 6c 65 74  |e numbers or let|
00000300  74 65 72 73 20 6d 61 79  20 62 65 20 77 69 74 68  |ters may be with|
00000310  20 74 68 65 69 72 20 63  6f 72 72 65 73 70 6f 6e  | their correspon|
00000320  64 69 6e 67 20 0d 6e 75  6d 62 65 72 20 6f 72 20  |ding .number or |
00000330  6c 65 74 74 65 72 20 6f  6e 20 74 68 65 20 6f 70  |letter on the op|
00000340  70 6f 73 69 74 65 20 73  69 64 65 20 6f 66 20 74  |posite side of t|
00000350  68 65 20 68 65 78 61 67  6f 6e 2c 20 6f 72 20 69  |he hexagon, or i|
00000360  74 20 6d 61 79 20 66 6f  6c 6c 6f 77 0d 69 6e 20  |t may follow.in |
00000370  73 65 71 75 65 6e 63 65  20 66 72 6f 6d 20 61 6e  |sequence from an|
00000380  20 61 64 6a 61 63 65 6e  74 20 6e 75 6d 62 65 72  | adjacent number|
00000390  2e 0d 20 20 20 54 68 65  20 64 65 63 69 73 69 6f  |..   The decisio|
000003a0  6e 20 69 73 20 79 6f 75  72 73 2e 0d 0d 48 6f 77  |n is yours...How|
000003b0  20 74 6f 20 70 6c 61 79  0d 4b 65 79 20 69 6e 20  | to play.Key in |
000003c0  74 68 65 20 6e 75 6d 62  65 72 2c 20 6f 72 20 6c  |the number, or l|
000003d0  65 74 74 65 72 2c 20 6f  66 20 79 6f 75 72 20 63  |etter, of your c|
000003e0  68 6f 69 63 65 20 61 6e  64 20 70 72 65 73 73 20  |hoice and press |
000003f0  3c 52 45 54 55 52 4e 3e  2e 0d 0d 50 72 6f 67 72  |<RETURN>...Progr|
00000400  61 6d 6d 69 6e 67 20 68  69 6e 74 73 0d 54 68 69  |amming hints.Thi|
00000410  73 20 70 72 6f 67 72 61  6d 20 68 61 73 20 61 20  |s program has a |
00000420  74 69 6d 65 72 20 74 68  61 74 20 64 69 73 70 6c  |timer that displ|
00000430  61 79 73 20 74 68 65 20  74 69 6d 65 20 69 6e 20  |ays the time in |
00000440  73 65 63 6f 6e 64 73 20  6f 6e 20 74 68 65 20 73  |seconds on the s|
00000450  63 72 65 65 6e 0d 77 68  69 6c 65 20 74 68 65 20  |creen.while the |
00000460  63 6f 6d 70 75 74 65 72  20 69 73 20 77 61 69 74  |computer is wait|
00000470  69 6e 67 20 66 6f 72 20  74 68 65 20 70 6c 61 79  |ing for the play|
00000480  65 72 20 74 6f 20 6b 65  79 20 69 6e 20 73 6f 6d  |er to key in som|
00000490  65 74 68 69 6e 67 2e 20  54 68 69 73 20 0d 69 73  |ething. This .is|
000004a0  20 61 20 76 65 72 79 20  75 73 65 66 75 6c 20 66  | a very useful f|
000004b0  61 63 69 6c 69 74 79 20  61 6e 64 20 69 73 20 64  |acility and is d|
000004c0  6f 6e 65 20 62 79 20 73  65 74 74 69 6e 67 20 74  |one by setting t|
000004d0  68 65 20 73 79 73 74 65  6d 20 76 61 72 69 61 62  |he system variab|
000004e0  6c 65 20 0d 54 49 4d 45  20 74 6f 20 7a 65 72 6f  |le .TIME to zero|
000004f0  20 61 74 20 74 68 65 20  73 74 61 72 74 20 6f 66  | at the start of|
00000500  20 74 68 65 20 70 72 6f  67 72 61 6d 2e 20 54 69  | the program. Ti|
00000510  6d 65 20 77 69 6c 6c 20  74 68 65 6e 20 68 6f 6c  |me will then hol|
00000520  64 20 74 68 65 20 74 69  6d 65 20 0d 69 6e 20 73  |d the time .in s|
00000530  65 63 6f 6e 64 73 20 6d  75 6c 74 69 70 6c 69 65  |econds multiplie|
00000540  64 20 62 79 20 31 30 30  2e 20 54 68 69 73 20 63  |d by 100. This c|
00000550  61 6e 20 62 65 20 64 69  73 70 6c 61 79 65 64 20  |an be displayed |
00000560  6f 6e 20 6f 63 63 61 73  69 6f 6e 73 20 0d 74 68  |on occasions .th|
00000570  72 6f 75 67 68 6f 75 74  20 74 68 65 20 70 72 6f  |roughout the pro|
00000580  67 72 61 6d 20 62 75 74  20 69 73 20 6d 6f 72 65  |gram but is more|
00000590  20 65 66 66 65 63 74 69  76 65 20 62 65 69 6e 67  | effective being|
000005a0  20 64 69 73 70 6c 61 79  65 64 20 63 6f 6e 73 74  | displayed const|
000005b0  61 6e 74 6c 79 2c 0d 65  73 70 65 63 69 61 6c 6c  |antly,.especiall|
000005c0  79 20 77 68 65 6e 20 74  68 65 20 70 72 6f 67 72  |y when the progr|
000005d0  61 6d 20 69 73 20 77 61  69 74 69 6e 67 20 66 6f  |am is waiting fo|
000005e0  72 20 74 68 65 20 70 6c  61 79 65 72 20 74 6f 20  |r the player to |
000005f0  6b 65 79 20 69 6e 20 73  6f 6d 65 2d 0d 74 68 69  |key in some-.thi|
00000600  6e 67 2e 20 54 68 69 73  20 69 73 20 64 6f 6e 65  |ng. This is done|
00000610  20 62 79 20 75 73 69 6e  67 20 49 4e 4b 45 59 24  | by using INKEY$|
00000620  28 31 30 29 20 69 6e 20  61 20 6c 6f 6f 70 20 77  |(10) in a loop w|
00000630  68 69 63 68 20 6b 65 65  70 73 20 63 68 65 63 6b  |hich keeps check|
00000640  69 6e 67 20 0d 69 66 20  61 20 6b 65 79 20 68 61  |ing .if a key ha|
00000650  73 20 62 65 65 6e 20 70  72 65 73 73 65 64 20 61  |s been pressed a|
00000660  6e 64 2c 20 69 66 20 69  74 20 68 61 73 20 6e 6f  |nd, if it has no|
00000670  74 2c 20 69 74 20 64 69  73 70 6c 61 79 73 20 74  |t, it displays t|
00000680  68 65 20 74 69 6d 65 20  28 73 65 65 0d 6c 69 6e  |he time (see.lin|
00000690  65 20 34 37 30 29 2e 20  57 68 65 6e 20 61 20 6b  |e 470). When a k|
000006a0  65 79 20 68 61 73 20 62  65 65 6e 20 66 6f 75 6e  |ey has been foun|
000006b0  64 20 74 6f 20 62 65 20  70 72 65 73 73 65 64 2c  |d to be pressed,|
000006c0  20 74 68 65 20 70 72 6f  67 72 61 6d 20 77 61 69  | the program wai|
000006d0  74 73 20 0d 66 6f 72 20  74 68 65 20 72 65 73 74  |ts .for the rest|
000006e0  20 6f 66 20 74 68 65 20  64 69 67 69 74 73 20 74  | of the digits t|
000006f0  6f 20 62 65 20 6b 65 79  65 64 20 61 6e 64 20 6b  |o be keyed and k|
00000700  6e 6f 77 73 20 79 6f 75  20 68 61 76 65 20 66 69  |nows you have fi|
00000710  6e 69 73 68 65 64 20 77  68 65 6e 0d 74 68 65 20  |nished when.the |
00000720  3c 52 45 54 55 52 4e 3e  20 6b 65 79 20 69 73 20  |<RETURN> key is |
00000730  70 72 65 73 73 65 64 2c  20 69 2e 65 2e 20 47 45  |pressed, i.e. GE|
00000740  54 24 3d 43 48 52 24 28  31 33 29 2e 0d 20 20 20  |T$=CHR$(13)..   |
00000750  4f 6e 65 20 63 68 61 6e  67 65 20 74 6f 20 6d 61  |One change to ma|
00000760  6b 65 20 74 68 65 20 70  75 7a 7a 6c 65 20 65 61  |ke the puzzle ea|
00000770  73 69 65 72 2c 20 69 73  20 74 6f 20 72 65 64 75  |sier, is to redu|
00000780  63 65 20 74 68 65 20 73  69 7a 65 20 6f 66 20 74  |ce the size of t|
00000790  68 65 0d 6e 75 6d 62 65  72 73 20 75 73 65 64 2e  |he.numbers used.|
000007a0  20 53 28 32 29 20 6f 6e  20 6c 69 6e 65 20 31 35  | S(2) on line 15|
000007b0  30 20 69 73 20 74 68 65  20 76 61 6c 75 65 20 6f  |0 is the value o|
000007c0  66 20 74 68 65 20 66 69  72 73 74 20 6e 75 6d 62  |f the first numb|
000007d0  65 72 20 69 6e 20 74 68  65 0d 73 65 71 75 65 6e  |er in the.sequen|
000007e0  63 65 20 69 66 20 74 68  65 20 70 61 74 74 65 72  |ce if the patter|
000007f0  6e 20 69 73 20 61 20 73  65 71 75 65 6e 63 65 20  |n is a sequence |
00000800  6f 66 20 6e 75 6d 62 65  72 73 20 67 6f 69 6e 67  |of numbers going|
00000810  20 61 72 6f 75 6e 64 20  74 68 65 20 68 65 78 61  | around the hexa|
00000820  2d 0d 67 6f 6e 2e 20 49  43 20 6f 6e 20 6c 69 6e  |-.gon. IC on lin|
00000830  65 20 31 36 30 20 69 73  20 72 65 6c 61 74 65 64  |e 160 is related|
00000840  20 74 6f 20 74 68 65 20  69 6e 74 65 72 76 61 6c  | to the interval|
00000850  20 62 65 74 77 65 65 6e  20 74 68 65 20 6e 75 6d  | between the num|
00000860  62 65 72 73 20 67 6f 69  6e 67 0d 72 6f 75 6e 64  |bers going.round|
00000870  20 74 68 65 20 68 65 78  61 67 6f 6e 2e 20 53 6f  | the hexagon. So|
00000880  20 69 66 20 74 68 65 20  39 20 69 6e 20 6c 69 6e  | if the 9 in lin|
00000890  65 20 31 35 30 20 69 73  20 63 68 61 6e 67 65 64  |e 150 is changed|
000008a0  20 74 6f 20 61 20 73 6d  61 6c 6c 65 72 20 0d 6e  | to a smaller .n|
000008b0  75 6d 62 65 72 20 61 6e  64 20 49 43 20 69 73 20  |umber and IC is |
000008c0  61 6c 77 61 79 73 20 31  20 74 68 69 73 20 77 69  |always 1 this wi|
000008d0  6c 6c 20 6d 61 6b 65 20  74 68 65 20 70 75 7a 7a  |ll make the puzz|
000008e0  6c 65 20 65 61 73 69 65  72 2e 0d 20 20 20 49 66  |le easier..   If|
000008f0  20 79 6f 75 20 77 69 73  68 20 74 6f 20 6d 61 6b  | you wish to mak|
00000900  65 20 74 68 65 20 70 75  7a 7a 6c 65 20 6d 6f 72  |e the puzzle mor|
00000910  65 20 64 69 66 66 69 63  75 6c 74 20 28 61 6e 64  |e difficult (and|
00000920  20 79 6f 75 20 6d 75 73  74 20 62 65 20 62 72 61  | you must be bra|
00000930  76 65 0d 6f 72 20 61 20  67 65 6e 69 75 73 20 74  |ve.or a genius t|
00000940  6f 20 77 61 6e 74 20 74  6f 20 64 6f 20 73 6f 29  |o want to do so)|
00000950  2c 20 74 68 65 6e 20 79  6f 75 20 63 6f 75 6c 64  |, then you could|
00000960  20 65 69 74 68 65 72 20  69 6e 63 72 65 61 73 65  | either increase|
00000970  20 74 68 65 20 70 6f 73  73 2d 0d 69 62 6c 65 20  | the poss-.ible |
00000980  76 61 6c 75 65 73 20 6f  66 20 53 28 32 29 20 6f  |values of S(2) o|
00000990  72 20 49 43 20 6f 72 20  69 6e 63 72 65 61 73 65  |r IC or increase|
000009a0  20 74 68 65 20 6e 75 6d  62 65 72 20 6f 66 20 64  | the number of d|
000009b0  69 66 66 65 72 65 6e 74  20 74 79 70 65 73 20 6f  |ifferent types o|
000009c0  66 0d 73 65 71 75 65 6e  63 65 2e 20 41 74 20 70  |f.sequence. At p|
000009d0  72 65 73 65 6e 74 20 74  68 65 72 65 20 61 72 65  |resent there are|
000009e0  20 66 69 76 65 20 74 79  70 65 73 20 6f 66 20 73  | five types of s|
000009f0  65 71 75 65 6e 63 65 73  20 64 65 70 65 6e 64 69  |equences dependi|
00000a00  6e 67 20 6f 6e 0d 77 68  65 74 68 65 72 20 57 20  |ng on.whether W |
00000a10  69 73 20 30 20 74 6f 20  34 2e 20 49 66 20 79 6f  |is 0 to 4. If yo|
00000a20  75 20 61 6c 6c 6f 77 20  57 20 74 6f 20 62 65 63  |u allow W to bec|
00000a30  6f 6d 65 20 35 20 6f 72  20 6c 61 72 67 65 72 20  |ome 5 or larger |
00000a40  69 6e 20 6c 69 6e 65 20  31 37 30 2c 0d 79 6f 75  |in line 170,.you|
00000a50  20 63 6f 75 6c 64 20 61  64 64 20 61 20 6e 65 77  | could add a new|
00000a60  20 73 65 71 75 65 6e 63  65 20 74 79 70 65 20 66  | sequence type f|
00000a70  6f 72 20 57 3d 35 20 61  66 74 65 72 20 6c 69 6e  |or W=5 after lin|
00000a80  65 20 32 33 30 2e 0d 0d  53 41 46 45 2d 43 52 41  |e 230...SAFE-CRA|
00000a90  43 4b 45 52 0d 41 52 45  20 79 6f 75 20 61 20 71  |CKER.ARE you a q|
00000aa0  75 69 63 6b 2d 74 68 69  6e 6b 65 72 20 6f 72 20  |uick-thinker or |
00000ab0  61 20 64 65 65 70 20 74  68 69 6e 6b 65 72 3f 20  |a deep thinker? |
00000ac0  49 20 68 6f 70 65 20 79  6f 75 20 61 72 65 20 6f  |I hope you are o|
00000ad0  6e 65 20 6f 72 20 74 68  65 0d 6f 74 68 65 72 2c  |ne or the.other,|
00000ae0  20 6f 72 20 79 6f 75 20  77 69 6c 6c 20 6e 65 76  | or you will nev|
00000af0  65 72 20 62 65 20 61 62  6c 65 20 74 6f 20 63 72  |er be able to cr|
00000b00  61 63 6b 20 6f 70 65 6e  20 73 6f 6d 65 6f 6e 65  |ack open someone|
00000b10  20 65 6c 73 65 27 73 20  73 61 66 65 21 0d 20 20  | else's safe!.  |
00000b20  20 54 68 69 73 20 67 61  6d 65 20 63 61 6e 20 62  | This game can b|
00000b30  65 20 70 6c 61 79 65 64  20 74 77 6f 20 64 69 66  |e played two dif|
00000b40  66 65 72 65 6e 74 20 77  61 79 73 2c 20 64 65 70  |ferent ways, dep|
00000b50  65 6e 64 69 6e 67 20 6f  6e 20 77 68 65 74 68 65  |ending on whethe|
00000b60  72 20 79 6f 75 0d 61 72  65 20 61 20 71 75 69 63  |r you.are a quic|
00000b70  6b 20 6f 72 20 61 20 64  65 65 70 20 74 68 69 6e  |k or a deep thin|
00000b80  6b 65 72 2e 20 49 66 20  79 6f 75 20 61 72 65 20  |ker. If you are |
00000b90  6e 6f 74 20 73 75 72 65  20 77 68 69 63 68 20 79  |not sure which y|
00000ba0  6f 75 20 61 72 65 2c 20  74 68 65 6e 20 49 0d 73  |ou are, then I.s|
00000bb0  75 67 67 65 73 74 20 79  6f 75 20 70 6c 61 79 20  |uggest you play |
00000bc0  69 74 20 62 6f 74 68 20  77 61 79 73 2c 20 61 6e  |it both ways, an|
00000bd0  64 20 66 69 6e 64 20 6f  75 74 20 77 68 69 63 68  |d find out which|
00000be0  20 67 69 76 65 73 20 79  6f 75 20 74 68 65 20 68  | gives you the h|
00000bf0  69 67 68 65 73 74 0d 73  63 6f 72 65 2e 0d 20 20  |ighest.score..  |
00000c00  20 49 6e 20 61 6c 6c 20  63 61 73 65 73 2c 20 61  | In all cases, a|
00000c10  20 63 6c 6f 73 65 64 20  73 61 66 65 20 69 73 20  | closed safe is |
00000c20  64 69 73 70 6c 61 79 65  64 20 61 6e 64 20 79 6f  |displayed and yo|
00000c30  75 20 61 72 65 20 67 69  76 65 6e 20 74 77 6f 20  |u are given two |
00000c40  63 6c 75 65 73 0d 61 62  6f 75 74 20 74 68 65 20  |clues.about the |
00000c50  73 65 63 72 65 74 20 63  6f 64 65 20 74 68 61 74  |secret code that|
00000c60  20 6f 70 65 6e 73 20 69  74 2e 20 49 66 20 79 6f  | opens it. If yo|
00000c70  75 20 77 6f 72 6b 20 6f  75 74 20 74 68 65 20 65  |u work out the e|
00000c80  78 61 63 74 20 61 6e 73  77 65 72 0d 62 65 66 6f  |xact answer.befo|
00000c90  72 65 20 6b 65 79 69 6e  67 20 69 6e 20 74 68 65  |re keying in the|
00000ca0  20 63 6f 64 65 2c 20 79  6f 75 20 61 72 65 20 67  | code, you are g|
00000cb0  69 76 65 6e 20 74 77 6f  20 6d 69 6e 75 74 65 73  |iven two minutes|
00000cc0  20 74 6f 20 64 6f 20 69  74 2e 20 49 66 20 79 6f  | to do it. If yo|
00000cd0  75 0d 6d 61 6b 65 20 67  75 65 73 73 65 73 2c 20  |u.make guesses, |
00000ce0  74 68 65 6e 20 79 6f 75  20 61 72 65 20 6f 6e 6c  |then you are onl|
00000cf0  79 20 61 6c 6c 6f 77 65  64 20 73 69 78 74 65 65  |y allowed sixtee|
00000d00  6e 20 73 65 63 6f 6e 64  73 2e 20 57 72 6f 6e 67  |n seconds. Wrong|
00000d10  20 61 6e 73 77 65 72 73  0d 61 72 65 20 69 67 6e  | answers.are ign|
00000d20  6f 72 65 64 2e 0d 20 20  20 49 66 20 79 6f 75 20  |ored..   If you |
00000d30  74 61 6b 65 20 74 6f 6f  20 6c 6f 6e 67 2c 20 79  |take too long, y|
00000d40  6f 75 20 61 72 65 20 73  75 72 70 72 69 73 65 64  |ou are surprised|
00000d50  20 62 79 20 74 68 65 20  63 61 72 65 74 61 6b 65  | by the caretake|
00000d60  72 20 77 68 6f 20 73 77  69 74 63 68 65 73 0d 6f  |r who switches.o|
00000d70  6e 20 74 68 65 20 6c 69  67 68 74 2e 20 48 65 20  |n the light. He |
00000d80  74 68 65 6e 20 70 72 65  73 73 65 73 20 74 68 65  |then presses the|
00000d90  20 61 6c 61 72 6d 20 62  75 74 74 6f 6e 20 61 6e  | alarm button an|
00000da0  64 20 79 6f 75 20 68 65  61 72 20 74 68 65 20 70  |d you hear the p|
00000db0  6f 6c 69 63 65 0d 73 69  72 65 6e 73 20 77 61 69  |olice.sirens wai|
00000dc0  6c 69 6e 67 20 61 6e 64  20 79 6f 75 20 6b 6e 6f  |ling and you kno|
00000dd0  77 20 61 6c 6c 20 69 73  20 6c 6f 73 74 2e 0d 20  |w all is lost.. |
00000de0  20 20 49 66 20 79 6f 75  20 64 6f 20 6d 61 6e 61  |  If you do mana|
00000df0  67 65 20 74 6f 20 63 72  61 63 6b 20 74 68 65 20  |ge to crack the |
00000e00  63 6f 64 65 20 69 6e 20  74 69 6d 65 2c 20 74 68  |code in time, th|
00000e10  65 20 73 61 66 65 20 6f  70 65 6e 73 20 72 65 76  |e safe opens rev|
00000e20  65 61 6c 69 6e 67 0d 67  6f 6c 64 20 62 75 6c 6c  |ealing.gold bull|
00000e30  69 6f 6e 2e 0d 0d 48 6f  77 20 74 6f 20 70 6c 61  |ion...How to pla|
00000e40  79 0d 59 6f 75 20 61 72  65 20 67 69 76 65 6e 20  |y.You are given |
00000e50  74 77 6f 20 63 6c 75 65  73 20 61 6e 64 20 74 68  |two clues and th|
00000e60  65 20 63 6f 64 65 20 69  73 20 61 6c 77 61 79 73  |e code is always|
00000e70  20 61 20 74 77 6f 20 64  69 67 69 74 20 6e 75 6d  | a two digit num|
00000e80  62 65 72 2e 20 4b 65 79  20 0d 69 6e 20 74 68 65  |ber. Key .in the|
00000e90  20 6e 75 6d 62 65 72 2e  20 59 6f 75 20 64 6f 20  | number. You do |
00000ea0  6e 6f 74 20 6e 65 65 64  20 74 6f 20 70 72 65 73  |not need to pres|
00000eb0  73 20 3c 52 45 54 55 52  4e 3e 2e 0d 20 20 20 54  |s <RETURN>..   T|
00000ec0  6f 20 65 6e 64 20 74 68  65 20 70 72 6f 67 72 61  |o end the progra|
00000ed0  6d 2c 20 70 72 65 73 73  20 45 2e 0d 0d 50 72 6f  |m, press E...Pro|
00000ee0  67 72 61 6d 6d 69 6e 67  20 68 69 6e 74 73 0d 54  |gramming hints.T|
00000ef0  68 69 73 20 70 72 6f 67  72 61 6d 20 63 6f 6e 74  |his program cont|
00000f00  61 69 6e 73 20 74 77 6f  20 75 73 65 66 75 6c 20  |ains two useful |
00000f10  70 72 6f 63 65 64 75 72  65 73 3a 20 50 52 4f 43  |procedures: PROC|
00000f20  20 42 4c 4f 43 4b 20 64  72 61 77 73 20 61 20 72  | BLOCK draws a r|
00000f30  65 63 74 61 6e 2d 0d 67  6c 65 20 77 68 6f 73 65  |ectan-.gle whose|
00000f40  20 6c 6f 77 65 72 20 6c  65 66 74 20 68 61 6e 64  | lower left hand|
00000f50  20 63 6f 72 6e 65 72 20  69 73 20 58 2c 59 20 61  | corner is X,Y a|
00000f60  6e 64 20 77 68 6f 73 65  20 77 69 64 74 68 20 69  |nd whose width i|
00000f70  73 20 57 20 61 6e 64 20  68 65 69 67 68 74 0d 69  |s W and height.i|
00000f80  73 20 48 2e 20 50 52 4f  43 5f 50 41 52 4c 4c 20  |s H. PROC_PARLL |
00000f90  64 72 61 77 73 20 61 20  70 61 72 61 6c 6c 65 6c  |draws a parallel|
00000fa0  6f 67 72 61 6d 20 77 69  74 68 20 74 77 6f 20 73  |ogram with two s|
00000fb0  69 64 65 73 20 76 65 72  74 69 63 61 6c 2e 20 50  |ides vertical. P|
00000fc0  75 74 20 74 68 65 0d 63  6f 6f 72 64 69 6e 61 74  |ut the.coordinat|
00000fd0  65 73 20 6f 66 20 74 68  65 20 6c 6f 77 65 72 2c  |es of the lower,|
00000fe0  20 6c 65 66 74 2d 68 61  6e 64 20 63 6f 72 6e 65  | left-hand corne|
00000ff0  72 20 69 6e 20 58 31 2c  20 59 31 20 61 6e 64 20  |r in X1, Y1 and |
00001000  74 68 6f 73 65 20 6f 66  20 74 68 65 0d 75 70 70  |those of the.upp|
00001010  65 72 20 72 69 67 68 74  20 68 61 6e 64 20 63 6f  |er right hand co|
00001020  72 6e 65 72 20 69 6e 20  58 32 2c 20 59 32 2e 0d  |rner in X2, Y2..|
00001030  20 20 20 49 66 20 79 6f  75 20 77 61 6e 74 20 74  |   If you want t|
00001040  6f 20 6d 61 6b 65 20 74  68 65 20 67 61 6d 65 20  |o make the game |
00001050  65 61 73 69 65 72 2c 20  79 6f 75 20 63 61 6e 20  |easier, you can |
00001060  69 6e 63 72 65 61 73 65  20 74 68 65 20 74 69 6d  |increase the tim|
00001070  65 20 0d 61 6c 6c 6f 77  65 64 20 74 6f 20 67 75  |e .allowed to gu|
00001080  65 73 73 20 6f 72 20 72  65 64 75 63 65 20 74 68  |ess or reduce th|
00001090  65 20 6e 75 6d 62 65 72  20 6f 66 20 64 69 67 69  |e number of digi|
000010a0  74 73 20 61 6c 6c 6f 77  65 64 20 69 6e 20 74 68  |ts allowed in th|
000010b0  65 20 63 6f 64 65 20 6f  72 0d 62 6f 74 68 2e 0d  |e code or.both..|
000010c0  20 20 20 54 6f 20 69 6e  63 72 65 61 73 65 20 74  |   To increase t|
000010d0  68 65 20 74 69 6d 65 20  61 6c 6c 6f 77 65 64 20  |he time allowed |
000010e0  66 6f 72 20 67 75 65 73  73 65 73 2c 20 69 6e 63  |for guesses, inc|
000010f0  72 65 61 73 65 20 74 68  65 20 76 61 6c 75 65 20  |rease the value |
00001100  6f 66 20 54 4d 20 69 6e  0d 6c 69 6e 65 20 32 34  |of TM in.line 24|
00001110  30 2e 20 54 6f 20 69 6e  63 72 65 61 73 65 20 74  |0. To increase t|
00001120  68 65 20 74 69 6d 65 20  61 6c 6c 6f 77 65 64 20  |he time allowed |
00001130  77 68 65 6e 20 6f 6e 6c  79 20 6f 6e 65 20 61 6e  |when only one an|
00001140  73 77 65 72 20 69 73 20  6b 65 79 65 64 20 69 6e  |swer is keyed in|
00001150  2c 0d 69 6e 63 72 65 61  73 65 20 74 68 65 20 76  |,.increase the v|
00001160  61 6c 75 65 20 6f 66 20  54 4d 20 69 6e 20 6c 69  |alue of TM in li|
00001170  6e 65 20 32 32 30 2e 0d  20 20 20 54 6f 20 72 65  |ne 220..   To re|
00001180  64 75 63 65 20 74 68 65  20 6e 75 6d 62 65 72 20  |duce the number |
00001190  6f 66 20 64 69 67 69 74  73 20 61 6c 6c 6f 77 65  |of digits allowe|
000011a0  64 2c 20 72 65 64 75 63  65 20 74 68 65 20 6e 75  |d, reduce the nu|
000011b0  6d 62 65 72 20 69 6e 73  69 64 65 20 74 68 65 0d  |mber inside the.|
000011c0  52 4e 44 20 62 72 61 63  6b 65 74 73 20 66 6f 72  |RND brackets for|
000011d0  20 58 58 20 61 6e 64 20  59 59 20 69 6e 20 6c 69  | XX and YY in li|
000011e0  6e 65 20 35 32 30 2e 0d  20 20 20 49 66 20 79 6f  |ne 520..   If yo|
000011f0  75 20 66 69 6e 64 20 74  68 65 20 67 61 6d 65 20  |u find the game |
00001200  74 6f 6f 20 65 61 73 79  20 74 68 65 6e 20 64 6f  |too easy then do|
00001210  20 74 68 65 20 6f 70 70  6f 73 69 74 65 2e 0d 20  | the opposite.. |
00001220  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00001240  20 20 20 20 20 20 20 20  20 20 20 20 47 65 6e 65  |            Gene|
00001250  76 69 65 76 65 20 4c 75  64 69 6e 73 6b 69 2c 20  |vieve Ludinski, |
00001260  45 55 47 20 23 35 32 0d                           |EUG #52.|
00001268
V/+BTEAS1.m0
V/+BTEAS1.m1
V/+BTEAS1.m2
V/+BTEAS1.m4
V/+BTEAS1.m5