Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_53.ADF » V/+BTEAS2

V/+BTEAS2

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_53.ADF
Filename: V/+BTEAS2
Read OK:
File size: 0FA9 bytes
Load address: 56204556
Exec address: 54422B2E
Duplicates

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

File contents
                             BRAINTEASERS
                            By G. Ludinski

PART two of EUG's series of utilities designed to stretch your brain 
into all manner of putty-like shapes presents another two of the same;
once again with this accompanying article divulging their secrets. 
Brief instructions also appear on screen.

A-MAZE-ING
YOU are in the middle of a complicated maze, and your objective is to
reach the outside in the quickest possible time, but also with the few-
est number of moves possible.
   Don't rush headlong into this one as a little forward planning can 
save you time and points.
   Every step counts as a point and every time you try to cross a 
barrier counts as a point.
   You must aim for the top right hand corner or the exit nearest to 
that one.

How to play
YOU are represented by a dot in the lower left hand side of the maze,
and you move by using the ARROW cursor keys.
   Your score will be displayed at the top of the screen. The number of
steps taken has a greater effect on your final score than the time
factor.
   You may, of course, retrace your steps and begin again from any point
you wish to. When you have reached the outside, or you wish to give up,
press the <ESCAPE> key.
   We hope you make it, as there are plenty more 'Brainteasers' waiting
for you on the outside.

Programming hints
THE maze is created of cells, each of which have one side blocked off.
The cell shapes are drawn using VDU 23 to create user-defined graphics.
   You could increase the size of the maze by changing 20 and 24 in
lines 230 and 250. The maze shown is 24 columns wide by 20 rows. The 
maze shown is 24 columns wide by 20 rows. The maze array M% must be 
DIMensioned 1 column and 2 rows larger than the actual array to allow
for checking the (X+1)th column and (Y+1)th row. If you want the array
in the centre of the screen you should change the PRINT statements in
lines 220 and 240.
   The lines drawn down the side of the maze in lines 300 and 310 would
have to be changed, so would the start position of the dot in lines 320
and 330. In a 20 row maze, the 21st row is the row the dot starts on,
so special conditions apply to this row in lines 370 to 430. If a diff-
erent number of rows is chosen this 21 must be changed.

SPOT THE DIFFERENCE
I SUPPOSE that this could have been called STARS AND STRIPES, the 
difference as you will see when you run this colourful eye test.
   Two pictures, composed of stars and stripes, in red, white and blue
appear on the screen, and you will be asked to identify which of the 
items is different.

How to play
ITEMS are keyed as follows:
   Red Stripe = 1   *   White Stripe = 2   *   Blue Stripe = 3
   Red Star = 4   *   White Star = 5   *   Blue Star = 6

Identify the differences and key in the number and press <RETURN>. If 
you are correct you will hear a high pitched tune, but if you are wrong
your answer will be crossed.
   To help you, numbers previously keyed in are displayed in brackets.
When all the numbers required have been keyed in a further tune will be
played. Just hope that it is high pitched for a correct answer.
   To continue, or stop, press Y or N or <RETURN>.
   At conclusion you will see your score sheet showing tries, correct
answers and time/average taken.

Programming hints
YOU might find the routine PROC_STAR useful in your non-commercial
programs as it draws a star. You just have to specify the bottom left-
hand corner of the star (X,Y), the width of the bottom of the star (W),
the height of the star (H) and the colour that it is to be displayed in
(CL).
   You could make the puzzle easier by increasing the range of possible
values for the shapes that are going to be different. The function 
FNM(MIN,MAX) is used to define the minimum and maximum value of any 
shape. Remember if you increase the MAX value you must reduce MIN by the
same value, or the picture will extend beyond the allocated area.
                                             Genevieve Ludinski, EUG #53
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 50 41  52 54 20 74 77 6f 20 6f  |nski..PART two o|
00000060  66 20 45 55 47 27 73 20  73 65 72 69 65 73 20 6f  |f EUG's series o|
00000070  66 20 75 74 69 6c 69 74  69 65 73 20 64 65 73 69  |f utilities desi|
00000080  67 6e 65 64 20 74 6f 20  73 74 72 65 74 63 68 20  |gned to stretch |
00000090  79 6f 75 72 20 62 72 61  69 6e 20 0d 69 6e 74 6f  |your brain .into|
000000a0  20 61 6c 6c 20 6d 61 6e  6e 65 72 20 6f 66 20 70  | all manner of p|
000000b0  75 74 74 79 2d 6c 69 6b  65 20 73 68 61 70 65 73  |utty-like shapes|
000000c0  20 70 72 65 73 65 6e 74  73 20 61 6e 6f 74 68 65  | presents anothe|
000000d0  72 20 74 77 6f 20 6f 66  20 74 68 65 20 73 61 6d  |r two of the sam|
000000e0  65 3b 0d 6f 6e 63 65 20  61 67 61 69 6e 20 77 69  |e;.once again wi|
000000f0  74 68 20 74 68 69 73 20  61 63 63 6f 6d 70 61 6e  |th this accompan|
00000100  79 69 6e 67 20 61 72 74  69 63 6c 65 20 64 69 76  |ying article div|
00000110  75 6c 67 69 6e 67 20 74  68 65 69 72 20 73 65 63  |ulging their sec|
00000120  72 65 74 73 2e 20 0d 42  72 69 65 66 20 69 6e 73  |rets. .Brief ins|
00000130  74 72 75 63 74 69 6f 6e  73 20 61 6c 73 6f 20 61  |tructions also a|
00000140  70 70 65 61 72 20 6f 6e  20 73 63 72 65 65 6e 2e  |ppear on screen.|
00000150  0d 0d 41 2d 4d 41 5a 45  2d 49 4e 47 0d 59 4f 55  |..A-MAZE-ING.YOU|
00000160  20 61 72 65 20 69 6e 20  74 68 65 20 6d 69 64 64  | are in the midd|
00000170  6c 65 20 6f 66 20 61 20  63 6f 6d 70 6c 69 63 61  |le of a complica|
00000180  74 65 64 20 6d 61 7a 65  2c 20 61 6e 64 20 79 6f  |ted maze, and yo|
00000190  75 72 20 6f 62 6a 65 63  74 69 76 65 20 69 73 20  |ur objective is |
000001a0  74 6f 0d 72 65 61 63 68  20 74 68 65 20 6f 75 74  |to.reach the out|
000001b0  73 69 64 65 20 69 6e 20  74 68 65 20 71 75 69 63  |side in the quic|
000001c0  6b 65 73 74 20 70 6f 73  73 69 62 6c 65 20 74 69  |kest possible ti|
000001d0  6d 65 2c 20 62 75 74 20  61 6c 73 6f 20 77 69 74  |me, but also wit|
000001e0  68 20 74 68 65 20 66 65  77 2d 0d 65 73 74 20 6e  |h the few-.est n|
000001f0  75 6d 62 65 72 20 6f 66  20 6d 6f 76 65 73 20 70  |umber of moves p|
00000200  6f 73 73 69 62 6c 65 2e  0d 20 20 20 44 6f 6e 27  |ossible..   Don'|
00000210  74 20 72 75 73 68 20 68  65 61 64 6c 6f 6e 67 20  |t rush headlong |
00000220  69 6e 74 6f 20 74 68 69  73 20 6f 6e 65 20 61 73  |into this one as|
00000230  20 61 20 6c 69 74 74 6c  65 20 66 6f 72 77 61 72  | a little forwar|
00000240  64 20 70 6c 61 6e 6e 69  6e 67 20 63 61 6e 20 0d  |d planning can .|
00000250  73 61 76 65 20 79 6f 75  20 74 69 6d 65 20 61 6e  |save you time an|
00000260  64 20 70 6f 69 6e 74 73  2e 0d 20 20 20 45 76 65  |d points..   Eve|
00000270  72 79 20 73 74 65 70 20  63 6f 75 6e 74 73 20 61  |ry step counts a|
00000280  73 20 61 20 70 6f 69 6e  74 20 61 6e 64 20 65 76  |s a point and ev|
00000290  65 72 79 20 74 69 6d 65  20 79 6f 75 20 74 72 79  |ery time you try|
000002a0  20 74 6f 20 63 72 6f 73  73 20 61 20 0d 62 61 72  | to cross a .bar|
000002b0  72 69 65 72 20 63 6f 75  6e 74 73 20 61 73 20 61  |rier counts as a|
000002c0  20 70 6f 69 6e 74 2e 0d  20 20 20 59 6f 75 20 6d  | point..   You m|
000002d0  75 73 74 20 61 69 6d 20  66 6f 72 20 74 68 65 20  |ust aim for the |
000002e0  74 6f 70 20 72 69 67 68  74 20 68 61 6e 64 20 63  |top right hand c|
000002f0  6f 72 6e 65 72 20 6f 72  20 74 68 65 20 65 78 69  |orner or the exi|
00000300  74 20 6e 65 61 72 65 73  74 20 74 6f 20 0d 74 68  |t nearest to .th|
00000310  61 74 20 6f 6e 65 2e 0d  0d 48 6f 77 20 74 6f 20  |at one...How to |
00000320  70 6c 61 79 0d 59 4f 55  20 61 72 65 20 72 65 70  |play.YOU are rep|
00000330  72 65 73 65 6e 74 65 64  20 62 79 20 61 20 64 6f  |resented by a do|
00000340  74 20 69 6e 20 74 68 65  20 6c 6f 77 65 72 20 6c  |t in the lower l|
00000350  65 66 74 20 68 61 6e 64  20 73 69 64 65 20 6f 66  |eft hand side of|
00000360  20 74 68 65 20 6d 61 7a  65 2c 0d 61 6e 64 20 79  | the maze,.and y|
00000370  6f 75 20 6d 6f 76 65 20  62 79 20 75 73 69 6e 67  |ou move by using|
00000380  20 74 68 65 20 41 52 52  4f 57 20 63 75 72 73 6f  | the ARROW curso|
00000390  72 20 6b 65 79 73 2e 0d  20 20 20 59 6f 75 72 20  |r keys..   Your |
000003a0  73 63 6f 72 65 20 77 69  6c 6c 20 62 65 20 64 69  |score will be di|
000003b0  73 70 6c 61 79 65 64 20  61 74 20 74 68 65 20 74  |splayed at the t|
000003c0  6f 70 20 6f 66 20 74 68  65 20 73 63 72 65 65 6e  |op of the screen|
000003d0  2e 20 54 68 65 20 6e 75  6d 62 65 72 20 6f 66 0d  |. The number of.|
000003e0  73 74 65 70 73 20 74 61  6b 65 6e 20 68 61 73 20  |steps taken has |
000003f0  61 20 67 72 65 61 74 65  72 20 65 66 66 65 63 74  |a greater effect|
00000400  20 6f 6e 20 79 6f 75 72  20 66 69 6e 61 6c 20 73  | on your final s|
00000410  63 6f 72 65 20 74 68 61  6e 20 74 68 65 20 74 69  |core than the ti|
00000420  6d 65 0d 66 61 63 74 6f  72 2e 0d 20 20 20 59 6f  |me.factor..   Yo|
00000430  75 20 6d 61 79 2c 20 6f  66 20 63 6f 75 72 73 65  |u may, of course|
00000440  2c 20 72 65 74 72 61 63  65 20 79 6f 75 72 20 73  |, retrace your s|
00000450  74 65 70 73 20 61 6e 64  20 62 65 67 69 6e 20 61  |teps and begin a|
00000460  67 61 69 6e 20 66 72 6f  6d 20 61 6e 79 20 70 6f  |gain from any po|
00000470  69 6e 74 0d 79 6f 75 20  77 69 73 68 20 74 6f 2e  |int.you wish to.|
00000480  20 57 68 65 6e 20 79 6f  75 20 68 61 76 65 20 72  | When you have r|
00000490  65 61 63 68 65 64 20 74  68 65 20 6f 75 74 73 69  |eached the outsi|
000004a0  64 65 2c 20 6f 72 20 79  6f 75 20 77 69 73 68 20  |de, or you wish |
000004b0  74 6f 20 67 69 76 65 20  75 70 2c 0d 70 72 65 73  |to give up,.pres|
000004c0  73 20 74 68 65 20 3c 45  53 43 41 50 45 3e 20 6b  |s the <ESCAPE> k|
000004d0  65 79 2e 0d 20 20 20 57  65 20 68 6f 70 65 20 79  |ey..   We hope y|
000004e0  6f 75 20 6d 61 6b 65 20  69 74 2c 20 61 73 20 74  |ou make it, as t|
000004f0  68 65 72 65 20 61 72 65  20 70 6c 65 6e 74 79 20  |here are plenty |
00000500  6d 6f 72 65 20 27 42 72  61 69 6e 74 65 61 73 65  |more 'Braintease|
00000510  72 73 27 20 77 61 69 74  69 6e 67 0d 66 6f 72 20  |rs' waiting.for |
00000520  79 6f 75 20 6f 6e 20 74  68 65 20 6f 75 74 73 69  |you on the outsi|
00000530  64 65 2e 0d 0d 50 72 6f  67 72 61 6d 6d 69 6e 67  |de...Programming|
00000540  20 68 69 6e 74 73 0d 54  48 45 20 6d 61 7a 65 20  | hints.THE maze |
00000550  69 73 20 63 72 65 61 74  65 64 20 6f 66 20 63 65  |is created of ce|
00000560  6c 6c 73 2c 20 65 61 63  68 20 6f 66 20 77 68 69  |lls, each of whi|
00000570  63 68 20 68 61 76 65 20  6f 6e 65 20 73 69 64 65  |ch have one side|
00000580  20 62 6c 6f 63 6b 65 64  20 6f 66 66 2e 0d 54 68  | blocked off..Th|
00000590  65 20 63 65 6c 6c 20 73  68 61 70 65 73 20 61 72  |e cell shapes ar|
000005a0  65 20 64 72 61 77 6e 20  75 73 69 6e 67 20 56 44  |e drawn using VD|
000005b0  55 20 32 33 20 74 6f 20  63 72 65 61 74 65 20 75  |U 23 to create u|
000005c0  73 65 72 2d 64 65 66 69  6e 65 64 20 67 72 61 70  |ser-defined grap|
000005d0  68 69 63 73 2e 0d 20 20  20 59 6f 75 20 63 6f 75  |hics..   You cou|
000005e0  6c 64 20 69 6e 63 72 65  61 73 65 20 74 68 65 20  |ld increase the |
000005f0  73 69 7a 65 20 6f 66 20  74 68 65 20 6d 61 7a 65  |size of the maze|
00000600  20 62 79 20 63 68 61 6e  67 69 6e 67 20 32 30 20  | by changing 20 |
00000610  61 6e 64 20 32 34 20 69  6e 0d 6c 69 6e 65 73 20  |and 24 in.lines |
00000620  32 33 30 20 61 6e 64 20  32 35 30 2e 20 54 68 65  |230 and 250. The|
00000630  20 6d 61 7a 65 20 73 68  6f 77 6e 20 69 73 20 32  | maze shown is 2|
00000640  34 20 63 6f 6c 75 6d 6e  73 20 77 69 64 65 20 62  |4 columns wide b|
00000650  79 20 32 30 20 72 6f 77  73 2e 20 54 68 65 20 0d  |y 20 rows. The .|
00000660  6d 61 7a 65 20 73 68 6f  77 6e 20 69 73 20 32 34  |maze shown is 24|
00000670  20 63 6f 6c 75 6d 6e 73  20 77 69 64 65 20 62 79  | columns wide by|
00000680  20 32 30 20 72 6f 77 73  2e 20 54 68 65 20 6d 61  | 20 rows. The ma|
00000690  7a 65 20 61 72 72 61 79  20 4d 25 20 6d 75 73 74  |ze array M% must|
000006a0  20 62 65 20 0d 44 49 4d  65 6e 73 69 6f 6e 65 64  | be .DIMensioned|
000006b0  20 31 20 63 6f 6c 75 6d  6e 20 61 6e 64 20 32 20  | 1 column and 2 |
000006c0  72 6f 77 73 20 6c 61 72  67 65 72 20 74 68 61 6e  |rows larger than|
000006d0  20 74 68 65 20 61 63 74  75 61 6c 20 61 72 72 61  | the actual arra|
000006e0  79 20 74 6f 20 61 6c 6c  6f 77 0d 66 6f 72 20 63  |y to allow.for c|
000006f0  68 65 63 6b 69 6e 67 20  74 68 65 20 28 58 2b 31  |hecking the (X+1|
00000700  29 74 68 20 63 6f 6c 75  6d 6e 20 61 6e 64 20 28  |)th column and (|
00000710  59 2b 31 29 74 68 20 72  6f 77 2e 20 49 66 20 79  |Y+1)th row. If y|
00000720  6f 75 20 77 61 6e 74 20  74 68 65 20 61 72 72 61  |ou want the arra|
00000730  79 0d 69 6e 20 74 68 65  20 63 65 6e 74 72 65 20  |y.in the centre |
00000740  6f 66 20 74 68 65 20 73  63 72 65 65 6e 20 79 6f  |of the screen yo|
00000750  75 20 73 68 6f 75 6c 64  20 63 68 61 6e 67 65 20  |u should change |
00000760  74 68 65 20 50 52 49 4e  54 20 73 74 61 74 65 6d  |the PRINT statem|
00000770  65 6e 74 73 20 69 6e 0d  6c 69 6e 65 73 20 32 32  |ents in.lines 22|
00000780  30 20 61 6e 64 20 32 34  30 2e 0d 20 20 20 54 68  |0 and 240..   Th|
00000790  65 20 6c 69 6e 65 73 20  64 72 61 77 6e 20 64 6f  |e lines drawn do|
000007a0  77 6e 20 74 68 65 20 73  69 64 65 20 6f 66 20 74  |wn the side of t|
000007b0  68 65 20 6d 61 7a 65 20  69 6e 20 6c 69 6e 65 73  |he maze in lines|
000007c0  20 33 30 30 20 61 6e 64  20 33 31 30 20 77 6f 75  | 300 and 310 wou|
000007d0  6c 64 0d 68 61 76 65 20  74 6f 20 62 65 20 63 68  |ld.have to be ch|
000007e0  61 6e 67 65 64 2c 20 73  6f 20 77 6f 75 6c 64 20  |anged, so would |
000007f0  74 68 65 20 73 74 61 72  74 20 70 6f 73 69 74 69  |the start positi|
00000800  6f 6e 20 6f 66 20 74 68  65 20 64 6f 74 20 69 6e  |on of the dot in|
00000810  20 6c 69 6e 65 73 20 33  32 30 0d 61 6e 64 20 33  | lines 320.and 3|
00000820  33 30 2e 20 49 6e 20 61  20 32 30 20 72 6f 77 20  |30. In a 20 row |
00000830  6d 61 7a 65 2c 20 74 68  65 20 32 31 73 74 20 72  |maze, the 21st r|
00000840  6f 77 20 69 73 20 74 68  65 20 72 6f 77 20 74 68  |ow is the row th|
00000850  65 20 64 6f 74 20 73 74  61 72 74 73 20 6f 6e 2c  |e dot starts on,|
00000860  0d 73 6f 20 73 70 65 63  69 61 6c 20 63 6f 6e 64  |.so special cond|
00000870  69 74 69 6f 6e 73 20 61  70 70 6c 79 20 74 6f 20  |itions apply to |
00000880  74 68 69 73 20 72 6f 77  20 69 6e 20 6c 69 6e 65  |this row in line|
00000890  73 20 33 37 30 20 74 6f  20 34 33 30 2e 20 49 66  |s 370 to 430. If|
000008a0  20 61 20 64 69 66 66 2d  0d 65 72 65 6e 74 20 6e  | a diff-.erent n|
000008b0  75 6d 62 65 72 20 6f 66  20 72 6f 77 73 20 69 73  |umber of rows is|
000008c0  20 63 68 6f 73 65 6e 20  74 68 69 73 20 32 31 20  | chosen this 21 |
000008d0  6d 75 73 74 20 62 65 20  63 68 61 6e 67 65 64 2e  |must be changed.|
000008e0  0d 0d 53 50 4f 54 20 54  48 45 20 44 49 46 46 45  |..SPOT THE DIFFE|
000008f0  52 45 4e 43 45 0d 49 20  53 55 50 50 4f 53 45 20  |RENCE.I SUPPOSE |
00000900  74 68 61 74 20 74 68 69  73 20 63 6f 75 6c 64 20  |that this could |
00000910  68 61 76 65 20 62 65 65  6e 20 63 61 6c 6c 65 64  |have been called|
00000920  20 53 54 41 52 53 20 41  4e 44 20 53 54 52 49 50  | STARS AND STRIP|
00000930  45 53 2c 20 74 68 65 20  0d 64 69 66 66 65 72 65  |ES, the .differe|
00000940  6e 63 65 20 61 73 20 79  6f 75 20 77 69 6c 6c 20  |nce as you will |
00000950  73 65 65 20 77 68 65 6e  20 79 6f 75 20 72 75 6e  |see when you run|
00000960  20 74 68 69 73 20 63 6f  6c 6f 75 72 66 75 6c 20  | this colourful |
00000970  65 79 65 20 74 65 73 74  2e 0d 20 20 20 54 77 6f  |eye test..   Two|
00000980  20 70 69 63 74 75 72 65  73 2c 20 63 6f 6d 70 6f  | pictures, compo|
00000990  73 65 64 20 6f 66 20 73  74 61 72 73 20 61 6e 64  |sed of stars and|
000009a0  20 73 74 72 69 70 65 73  2c 20 69 6e 20 72 65 64  | stripes, in red|
000009b0  2c 20 77 68 69 74 65 20  61 6e 64 20 62 6c 75 65  |, white and blue|
000009c0  0d 61 70 70 65 61 72 20  6f 6e 20 74 68 65 20 73  |.appear on the s|
000009d0  63 72 65 65 6e 2c 20 61  6e 64 20 79 6f 75 20 77  |creen, and you w|
000009e0  69 6c 6c 20 62 65 20 61  73 6b 65 64 20 74 6f 20  |ill be asked to |
000009f0  69 64 65 6e 74 69 66 79  20 77 68 69 63 68 20 6f  |identify which o|
00000a00  66 20 74 68 65 20 0d 69  74 65 6d 73 20 69 73 20  |f the .items is |
00000a10  64 69 66 66 65 72 65 6e  74 2e 0d 0d 48 6f 77 20  |different...How |
00000a20  74 6f 20 70 6c 61 79 0d  49 54 45 4d 53 20 61 72  |to play.ITEMS ar|
00000a30  65 20 6b 65 79 65 64 20  61 73 20 66 6f 6c 6c 6f  |e keyed as follo|
00000a40  77 73 3a 0d 20 20 20 52  65 64 20 53 74 72 69 70  |ws:.   Red Strip|
00000a50  65 20 3d 20 31 20 20 20  2a 20 20 20 57 68 69 74  |e = 1   *   Whit|
00000a60  65 20 53 74 72 69 70 65  20 3d 20 32 20 20 20 2a  |e Stripe = 2   *|
00000a70  20 20 20 42 6c 75 65 20  53 74 72 69 70 65 20 3d  |   Blue Stripe =|
00000a80  20 33 0d 20 20 20 52 65  64 20 53 74 61 72 20 3d  | 3.   Red Star =|
00000a90  20 34 20 20 20 2a 20 20  20 57 68 69 74 65 20 53  | 4   *   White S|
00000aa0  74 61 72 20 3d 20 35 20  20 20 2a 20 20 20 42 6c  |tar = 5   *   Bl|
00000ab0  75 65 20 53 74 61 72 20  3d 20 36 0d 0d 49 64 65  |ue Star = 6..Ide|
00000ac0  6e 74 69 66 79 20 74 68  65 20 64 69 66 66 65 72  |ntify the differ|
00000ad0  65 6e 63 65 73 20 61 6e  64 20 6b 65 79 20 69 6e  |ences and key in|
00000ae0  20 74 68 65 20 6e 75 6d  62 65 72 20 61 6e 64 20  | the number and |
00000af0  70 72 65 73 73 20 3c 52  45 54 55 52 4e 3e 2e 20  |press <RETURN>. |
00000b00  49 66 20 0d 79 6f 75 20  61 72 65 20 63 6f 72 72  |If .you are corr|
00000b10  65 63 74 20 79 6f 75 20  77 69 6c 6c 20 68 65 61  |ect you will hea|
00000b20  72 20 61 20 68 69 67 68  20 70 69 74 63 68 65 64  |r a high pitched|
00000b30  20 74 75 6e 65 2c 20 62  75 74 20 69 66 20 79 6f  | tune, but if yo|
00000b40  75 20 61 72 65 20 77 72  6f 6e 67 0d 79 6f 75 72  |u are wrong.your|
00000b50  20 61 6e 73 77 65 72 20  77 69 6c 6c 20 62 65 20  | answer will be |
00000b60  63 72 6f 73 73 65 64 2e  0d 20 20 20 54 6f 20 68  |crossed..   To h|
00000b70  65 6c 70 20 79 6f 75 2c  20 6e 75 6d 62 65 72 73  |elp you, numbers|
00000b80  20 70 72 65 76 69 6f 75  73 6c 79 20 6b 65 79 65  | previously keye|
00000b90  64 20 69 6e 20 61 72 65  20 64 69 73 70 6c 61 79  |d in are display|
00000ba0  65 64 20 69 6e 20 62 72  61 63 6b 65 74 73 2e 0d  |ed in brackets..|
00000bb0  57 68 65 6e 20 61 6c 6c  20 74 68 65 20 6e 75 6d  |When all the num|
00000bc0  62 65 72 73 20 72 65 71  75 69 72 65 64 20 68 61  |bers required ha|
00000bd0  76 65 20 62 65 65 6e 20  6b 65 79 65 64 20 69 6e  |ve been keyed in|
00000be0  20 61 20 66 75 72 74 68  65 72 20 74 75 6e 65 20  | a further tune |
00000bf0  77 69 6c 6c 20 62 65 0d  70 6c 61 79 65 64 2e 20  |will be.played. |
00000c00  4a 75 73 74 20 68 6f 70  65 20 74 68 61 74 20 69  |Just hope that i|
00000c10  74 20 69 73 20 68 69 67  68 20 70 69 74 63 68 65  |t is high pitche|
00000c20  64 20 66 6f 72 20 61 20  63 6f 72 72 65 63 74 20  |d for a correct |
00000c30  61 6e 73 77 65 72 2e 0d  20 20 20 54 6f 20 63 6f  |answer..   To co|
00000c40  6e 74 69 6e 75 65 2c 20  6f 72 20 73 74 6f 70 2c  |ntinue, or stop,|
00000c50  20 70 72 65 73 73 20 59  20 6f 72 20 4e 20 6f 72  | press Y or N or|
00000c60  20 3c 52 45 54 55 52 4e  3e 2e 0d 20 20 20 41 74  | <RETURN>..   At|
00000c70  20 63 6f 6e 63 6c 75 73  69 6f 6e 20 79 6f 75 20  | conclusion you |
00000c80  77 69 6c 6c 20 73 65 65  20 79 6f 75 72 20 73 63  |will see your sc|
00000c90  6f 72 65 20 73 68 65 65  74 20 73 68 6f 77 69 6e  |ore sheet showin|
00000ca0  67 20 74 72 69 65 73 2c  20 63 6f 72 72 65 63 74  |g tries, correct|
00000cb0  0d 61 6e 73 77 65 72 73  20 61 6e 64 20 74 69 6d  |.answers and tim|
00000cc0  65 2f 61 76 65 72 61 67  65 20 74 61 6b 65 6e 2e  |e/average taken.|
00000cd0  0d 0d 50 72 6f 67 72 61  6d 6d 69 6e 67 20 68 69  |..Programming hi|
00000ce0  6e 74 73 0d 59 4f 55 20  6d 69 67 68 74 20 66 69  |nts.YOU might fi|
00000cf0  6e 64 20 74 68 65 20 72  6f 75 74 69 6e 65 20 50  |nd the routine P|
00000d00  52 4f 43 5f 53 54 41 52  20 75 73 65 66 75 6c 20  |ROC_STAR useful |
00000d10  69 6e 20 79 6f 75 72 20  6e 6f 6e 2d 63 6f 6d 6d  |in your non-comm|
00000d20  65 72 63 69 61 6c 0d 70  72 6f 67 72 61 6d 73 20  |ercial.programs |
00000d30  61 73 20 69 74 20 64 72  61 77 73 20 61 20 73 74  |as it draws a st|
00000d40  61 72 2e 20 59 6f 75 20  6a 75 73 74 20 68 61 76  |ar. You just hav|
00000d50  65 20 74 6f 20 73 70 65  63 69 66 79 20 74 68 65  |e to specify the|
00000d60  20 62 6f 74 74 6f 6d 20  6c 65 66 74 2d 0d 68 61  | bottom left-.ha|
00000d70  6e 64 20 63 6f 72 6e 65  72 20 6f 66 20 74 68 65  |nd corner of the|
00000d80  20 73 74 61 72 20 28 58  2c 59 29 2c 20 74 68 65  | star (X,Y), the|
00000d90  20 77 69 64 74 68 20 6f  66 20 74 68 65 20 62 6f  | width of the bo|
00000da0  74 74 6f 6d 20 6f 66 20  74 68 65 20 73 74 61 72  |ttom of the star|
00000db0  20 28 57 29 2c 0d 74 68  65 20 68 65 69 67 68 74  | (W),.the height|
00000dc0  20 6f 66 20 74 68 65 20  73 74 61 72 20 28 48 29  | of the star (H)|
00000dd0  20 61 6e 64 20 74 68 65  20 63 6f 6c 6f 75 72 20  | and the colour |
00000de0  74 68 61 74 20 69 74 20  69 73 20 74 6f 20 62 65  |that it is to be|
00000df0  20 64 69 73 70 6c 61 79  65 64 20 69 6e 0d 28 43  | displayed in.(C|
00000e00  4c 29 2e 0d 20 20 20 59  6f 75 20 63 6f 75 6c 64  |L)..   You could|
00000e10  20 6d 61 6b 65 20 74 68  65 20 70 75 7a 7a 6c 65  | make the puzzle|
00000e20  20 65 61 73 69 65 72 20  62 79 20 69 6e 63 72 65  | easier by incre|
00000e30  61 73 69 6e 67 20 74 68  65 20 72 61 6e 67 65 20  |asing the range |
00000e40  6f 66 20 70 6f 73 73 69  62 6c 65 0d 76 61 6c 75  |of possible.valu|
00000e50  65 73 20 66 6f 72 20 74  68 65 20 73 68 61 70 65  |es for the shape|
00000e60  73 20 74 68 61 74 20 61  72 65 20 67 6f 69 6e 67  |s that are going|
00000e70  20 74 6f 20 62 65 20 64  69 66 66 65 72 65 6e 74  | to be different|
00000e80  2e 20 54 68 65 20 66 75  6e 63 74 69 6f 6e 20 0d  |. The function .|
00000e90  46 4e 4d 28 4d 49 4e 2c  4d 41 58 29 20 69 73 20  |FNM(MIN,MAX) is |
00000ea0  75 73 65 64 20 74 6f 20  64 65 66 69 6e 65 20 74  |used to define t|
00000eb0  68 65 20 6d 69 6e 69 6d  75 6d 20 61 6e 64 20 6d  |he minimum and m|
00000ec0  61 78 69 6d 75 6d 20 76  61 6c 75 65 20 6f 66 20  |aximum value of |
00000ed0  61 6e 79 20 0d 73 68 61  70 65 2e 20 52 65 6d 65  |any .shape. Reme|
00000ee0  6d 62 65 72 20 69 66 20  79 6f 75 20 69 6e 63 72  |mber if you incr|
00000ef0  65 61 73 65 20 74 68 65  20 4d 41 58 20 76 61 6c  |ease the MAX val|
00000f00  75 65 20 79 6f 75 20 6d  75 73 74 20 72 65 64 75  |ue you must redu|
00000f10  63 65 20 4d 49 4e 20 62  79 20 74 68 65 0d 73 61  |ce MIN by the.sa|
00000f20  6d 65 20 76 61 6c 75 65  2c 20 6f 72 20 74 68 65  |me value, or the|
00000f30  20 70 69 63 74 75 72 65  20 77 69 6c 6c 20 65 78  | picture will ex|
00000f40  74 65 6e 64 20 62 65 79  6f 6e 64 20 74 68 65 20  |tend beyond the |
00000f50  61 6c 6c 6f 63 61 74 65  64 20 61 72 65 61 2e 0d  |allocated area..|
00000f60  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000f80  20 20 20 20 20 20 20 20  20 20 20 20 20 47 65 6e  |             Gen|
00000f90  65 76 69 65 76 65 20 4c  75 64 69 6e 73 6b 69 2c  |evieve Ludinski,|
00000fa0  20 45 55 47 20 23 35 33  0d                       | EUG #53.|
00000fa9
V/+BTEAS2.m0
V/+BTEAS2.m1
V/+BTEAS2.m2
V/+BTEAS2.m4
V/+BTEAS2.m5