Home » Personal collection » Commodore disks » disk32a_commodore_disk_user_3_7.d64 » maze.basic

maze.basic

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 » Commodore disks » disk32a_commodore_disk_user_3_7.d64
Filename: maze.basic
Read OK:
File size: 098F bytes
Load address: 0801
Exec address: 0000
Duplicates

There is 1 duplicate copy of this file in the archive:

File contents
    10 REM BASIC MAZE PROGRAM
   100 POKE 53280,0:POKE 53281,11
   110 PRINT"<clr><text mode><cursor down><cursor right><white>╲AZE 🭾ROGRAM"
   120 PRINT"<cursor right>🮂🮂🮂🮂🮂🮂🮂🮂🮂🮂🮂🮂"
   130 PRINT"<cursor down><cursor right>🭰HIS IS A 🭲♠♥╮🭸 EQUIVALENT OF THE"
   140 PRINT"<cursor right>MACHINE CODE MAZE GENERATOR. ♠LTHOUGH"
   150 PRINT" NOT IDENTICAL, IT USES A VERY SIMILAR"
   160 PRINT" ALGORITHM AND METHOD OF STORING DATA."
   170 PRINT"<cursor down><cursor right>🭷IMENSIONS:"
   180 PRINT"<cursor down><cursor right>╲AXIMUM: 18,10"
   190 PRINT"<cursor right>╲INIMUM: 1,1"
   200 PRINT"<cursor right>╳ISIBLE 🭸HARACTERS 33-132, 161-255"
   210 INPUT"<cursor down><cursor right>🭷IMENSIONS:   18,10<cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>";H,V
   215 IF H<1 OR V<1 OR H>18 OR V>10 THEN PRINT"<cursor down><cursor right>🭷IMENSIONS OUT OF RANGE !":GOTO 210
   220 INPUT"<cursor right>🭸HARACTER:    255<cursor left><cursor left><cursor left><cursor left><cursor left>";C
   225 IF C<33 OR C>255 THEN PRINT"<cursor down> 🭰RY A DIFFERENT CHARACTER.<cursor down>":GOTO 220
   230 PRINT"<clr><cursor down><cursor down><cursor down><cursor right>🭰HIS WILL TAKE AROUND";INT(H*V/3+1);"SECONDS."
   240 TI$="000000"
   997 :
   998 :
   999 REM MAIN LOOP
  1000 GOSUB 10000 : REM SETUP VARIABLES
  1010 GOSUB 5000  : REM PRINT TIME
  1020 IF DC>0 THEN GOSUB 2010
  1030 M%(R,S)=M%(R,S) OR 4
  1040 DC=T(RND(1)*T)
  1050 IF T>0 THEN P=P+1:P%(P)=DC
  1060 IF DC=1 THEN S=S-1:M%(R,S)=M%(R,S) OR 1:GOTO 1110
  1070 IF DC=2 THEN M%(R,S)=M%(R,S) OR 1:S=S+1:GOTO 1110
  1080 IF DC=3 THEN R=R-1:M%(R,S)=M%(R,S) OR 2:GOTO 1110
  1090 IF DC=4 THEN M%(R,S)=M%(R,S) OR 2:R=R+1:GOTO 1110
  1100 GOSUB 3010:GOTO 1120: REM DEADEND!
  1110 M%(R,S)=M%(R,S) OR O
  1120 IF P>0 THEN 1010
  1130 GOSUB 4010: REM FINISHED, PRINT OUT     BOARD.
  1140 POKE 198,0: REM CLEAR KEYBOARD
  1150 GET K$:IF K$="" THEN 1150
  1160 RUN
  1999 :
  2000 REM CHECK AVAILABLE DIRECTIONS
  2010 T(0)=0:T=0
  2020 IF S>0 THEN IF M%(R,S-1)=0 THEN T(T)=1:T=T+1
  2030 IF S<V THEN IF M%(R,S+1)=0 THEN T(T)=2:T=T+1
  2040 IF R>0 THEN IF M%(R-1,S)=0 THEN T(T)=3:T=T+1
  2050 IF R<H THEN IF M%(R+1,S)=0 THEN T(T)=4:T=T+1
  2060 RETURN
  2999 :
  3000 REM BACKTRACK THRU MAZE
  3010 G=1
  3020 Q=P%(P):GOSUB 5000 : REM REPEAT...
  3030 IF Q=1 THEN S=S+1  : REM DOWN
  3040 IF Q=2 THEN S=S-1  : REM UP
  3050 IF Q=3 THEN R=R+1  : REM RIGHT
  3060 IF Q=4 THEN R=R-1  :REM LEFT
  3070 GOSUB 2010
  3080 P=P-1:IF P=0 THEN G=0
  3090 IF T>0 THEN G=0
  3100 IF G THEN 3020     : REM UNTIL G=0
  3110 RETURN
  3999 :
  4000 REM PRINT MAZE
  4010 M%(H,V)=M%(H,V) OR 1
  4020 PRINT"<clr>":GOSUB 5000
  4030 PRINTC$;" ";
  4040 FOR I=1 TO H:PRINTC$;C$;:NEXT:PRINTC$
  4050 FOR J=0 TO V
  4060 PRINT C$;
  4070 FOR I=0 TO H
  4080 IF M%(I,J) AND 2 THEN PRINT"  ";:GOTO 4100
  4090 PRINT" ";C$;
  4100 NEXT I:PRINT
  4110 FOR I=0 TO H
  4120 IF M%(I,J) AND 1 THEN PRINTC$;" ";:GOTO 4140
  4130 PRINTC$;C$;
  4140 NEXT I:PRINT C$
  4150 NEXT J
  4160 RETURN
  5000 PRINT"<home><cursor down><cursor right>🭰IME:<cursor right>";TI$
  5010 RETURN
 10000 DIM P%((H+1)*(V+1)),M%(H,V),T%(3)
 10010 DC=1:C$=CHR$(C)
 10020 RETURN
 20000 REM VARIABLES
 20010 REM M%(H,V)-MAZE DATA
 20020 REM P%(P)  -MAZE MOVEMENTS
 20030 REM P      -POSITION IN P%(-)
 20040 REM H,V    -HORIZ VERT DIMENSIONS
 20050 REM R,S    -POSITION IN M%(-,-)
 20060 REM I,J    -LOOP COUNTERS
 20070 REM C$     -CHARACTER
 20080 REM DC     -DIRECTION CHOSEN 1-4
 20090 REM T      -NO. OF DIFFERENT
 20100 REM                DIRECTIONS
 20110 REM T(T)   -DIFFERENT DIRECTIONS
 20120 REM         AVAILABLE


� BASIC MAZE PROGRAM3d� 53280,0:� 53281,11Ln�"��AZE �ROGRAM"ax�"������������"���"�HIS IS A ���� EQUIVALENT OF THE"���"MACHINE CODE MAZE GENERATOR. �LTHOUGH"���" NOT IDENTICAL, IT USES A VERY SIMILAR"	��" ALGORITHM AND METHOD OF STORING DATA."+	��"�IMENSIONS:"C	��"�AXIMUM: 18,10"X	��"�INIMUM: 1,1"�	��"�ISIBLE �HARACTERS 33-132, 161-255"�	��"�IMENSIONS:   18,10�������";H,V�	�� H�1 � V�1 � H�18 � V�10 � �"�IMENSIONS OUT OF RANGE !":� 210
��"�HARACTER:    255�����";CM
�� C�33 � C�255 � �" �RY A DIFFERENT CHARACTER.":� 220�
��"��HIS WILL TAKE AROUND";�(H�V�3�1);"SECONDS."�
�TI$�"000000"�
�:�
�:�
�� MAIN LOOP�
�� 10000 : � SETUP VARIABLES�
�� 5000  : � PRINT TIME�� DC�0 � � 2010M%(R,S)�M%(R,S) � 4*DC�T(�(1)�T)E� T�0 � P�P�1:P%(P)�DCs$� DC�1 � S�S�1:M%(R,S)�M%(R,S) � 1:� 1110�.� DC�2 � M%(R,S)�M%(R,S) � 1:S�S�1:� 1110�8� DC�3 � R�R�1:M%(R,S)�M%(R,S) � 2:� 1110�B� DC�4 � M%(R,S)�M%(R,S) � 2:R�R�1:� 1110L� 3010:� 1120: � DEADEND!3VM%(R,S)�M%(R,S) � OD`� P�0 � 1010qj� 4010: � FINISHED, PRINT OUT     BOARD.�t� 198,0: � CLEAR KEYBOARD�~� K$:� K$�"" � 1150�����:��� CHECK AVAILABLE DIRECTIONS��T(0)�0:T�0
�� S�0 � � M%(R,S�1)�0 � T(T)�1:T�T�15
�� S�V � � M%(R,S�1)�0 � T(T)�2:T�T�1^
�� R�0 � � M%(R�1,S)�0 � T(T)�3:T�T�1�
� R�H � � M%(R�1,S)�0 � T(T)�4:T�T�1�
��
�:�
�� BACKTRACK THRU MAZE�
�G�1�
�Q�P%(P):� 5000 : � REPEAT...�
�� Q�1 � S�S�1  : � DOWN�� Q�2 � S�S�1  : � UP)�� Q�3 � R�R�1  : � RIGHTD�� Q�4 � R�R�1  :� LEFTO�� 2010eP�P�1:� P�0 � G�0u� T�0 � G�0�� G � 3020     : � UNTIL G=0�&���:��� PRINT MAZE��M%(H,V)�M%(H,V) � 1���"�":� 5000���C$;" ";�� I�1 � H:�C$;C$;:�:�C$�� J�0 � V�� C$;*�� I�0 � HL�� M%(I,J) � 2 � �"  ";:� 4100Y��" ";C$;c� I:�q� I�0 � H�� M%(I,J) � 1 � �C$;" ";:� 4140�"�C$;C$;�,� I:� C$�6� J�@����"�IME:";TI$����'� P%((H�1)�(V�1)),M%(H,V),T%(3)'DC�1:C$��(C)$'�" N� VARIABLES:*N� M%(H,V)-MAZE DATAW4N� P%(P)  -MAZE MOVEMENTSw>N� P      -POSITION IN P%(-)�HN� H,V    -HORIZ VERT DIMENSIONS�RN� R,S    -POSITION IN M%(-,-)�\N� I,J    -LOOP COUNTERS�fN� C$     -CHARACTERpN� DC     -DIRECTION CHOSEN 1-43zN� T      -NO. OF DIFFERENTS�N�                DIRECTIONSv�N� T(T)   -DIFFERENT DIRECTIONS��N�         AVAILABLE
ZHJ@. basic maze program@3HD@. 53280,0:. 53281,11@lHN@.".NQ]E.aze .rogram"@AHX@."]............"@.H.@."Q].his is a ..... equivalent of the"@.H.@."]machine code maze generator. .lthough"@.H.@." not identical, it uses a very similar"@VI.@." algorithm and method of storing data."@+I.@."Q].imensions:"@cI.@."Q].aximum: 18,10"@xI.@."].inimum: 1,1"@.I.@."].isible .haracters 33-132, 161-255"@.I.@."Q].imensions:   18,10.......";h,v@.I.@. h.1 . v.1 . h.18 . v.10 . ."Q].imensions out of range !":. 210@QJ.@."].haracter:    255.....";c@mJ.@. c.33 . c.255 . ."Q .ry a different character.Q":. 220@.J.@.".QQQ].his will take around";.(h.v.3.1);"seconds."@.J.@ti$."000000"@.J.C:@.J.C:@.J.C. main loop@.J.C. 10000 : . setup variables@.J.C. 5000  : . print time@AK.C. dc.0 . . 2010@YKFDm%(r,s).m%(r,s) . 4@*KPDdc.t(.(1).t)@eKZD. t.0 . p.p.1:p%(p).dc@SK$D. dc.1 . s.s.1:m%(r,s).m%(r,s) . 1:. 1110@.K.D. dc.2 . m%(r,s).m%(r,s) . 1:s.s.1:. 1110@.K8D. dc.3 . r.r.1:m%(r,s).m%(r,s) . 2:. 1110@.KbD. dc.4 . m%(r,s).m%(r,s) . 2:r.r.1:. 1110@[LlD. 3010:. 1120: . deadend!@3LvDm%(r,s).m%(r,s) . o@dL.D. p.0 . 1010@QLJD. 4010: . finished, print out     board.@.LTD. 198,0: . clear keyboard@.L.D. k$:. k$."" . 1150@.L.D.@.L.G:@.L.G. check available directions@.L.Gt(0).0:t.0@LM.G. s.0 . . m%(r,s.1).0 . t(t).1:t.t.1@5M.G. s.v . . m%(r,s.1).0 . t(t).2:t.t.1@.M.G. r.0 . . m%(r.1,s).0 . t(t).3:t.t.1@.MBH. r.h . . m%(r.1,s).0 . t(t).4:t.t.1@.MLH.@.M.K:@.M.K. backtrack thru maze@.M.Kg.1@.M.Kq.p%(p):. 5000 : . repeat...@.M.K. q.1 . s.s.1  : . down@LN.K. q.2 . s.s.1  : . up@)N.K. q.3 . r.r.1  : . right@dN.K. q.4 . r.r.1  :. left@oN.K. 2010@ENHLp.p.1:. p.0 . g.0@UNRL. t.0 . g.0@.N£L. g . 3020     : . until g=0@.N&L.@.N.O:@.N.O. print maze@.N.Om%(h,v).m%(h,v) . 1@.N.O.".":. 5000@.N.O.c$;" ";@DO.O. i.1 . h:.c$;c$;:.:.c$@RO.O. j.0 . v@£O.O. c$;@*O.O. i.0 . h@lO.O. m%(i,j) . 2 . ."  ";:. 4100@yO.O." ";c$;@CODP. i:.@QONP. i.0 . h@.OXP. m%(i,j) . 1 . .c$;" ";:. 4140@.O"P.c$;c$;@.O,P. i:. c$@.O6P. j@.O@P.@.O.S."SQ].ime:]";ti$@.O.S.@.OP'. p%((h.1).(v.1)),m%(h,v),t%(3)@LPZ'dc.1:c$..(c)@RP$'.@"P n. variables@:P*n. m%(h,v)-maze data@wP4n. p%(p)  -maze movements@WP>n. p      -position in p%(-)@.Phn. h,v    -horiz vert dimensions@.Prn. r,s    -position in m%(-,-)@.P£n. i,j    -loop counters@.PFn. c$     -character@TQPn. dc     -direction chosen 1-4@3QZn. t      -no. of different@sQ.n.                directions@VQ.n. t(t)   -different directions@.Q.n.         available@@@
00000000  1a 08 0a 00 8f 20 42 41  53 49 43 20 4d 41 5a 45  |..... BASIC MAZE|
00000010  20 50 52 4f 47 52 41 4d  00 33 08 64 00 97 20 35  | PROGRAM.3.d.. 5|
00000020  33 32 38 30 2c 30 3a 97  20 35 33 32 38 31 2c 31  |3280,0:. 53281,1|
00000030  31 00 4c 08 6e 00 99 22  93 0e 11 1d 05 cd 41 5a  |1.L.n.."......AZ|
00000040  45 20 d0 52 4f 47 52 41  4d 22 00 61 08 78 00 99  |E .ROGRAM".a.x..|
00000050  22 1d b7 b7 b7 b7 b7 b7  b7 b7 b7 b7 b7 b7 22 00  |".............".|
00000060  8c 08 82 00 99 22 11 1d  d4 48 49 53 20 49 53 20  |....."...HIS IS |
00000070  41 20 c2 c1 d3 c9 c3 20  45 51 55 49 56 41 4c 45  |A ..... EQUIVALE|
00000080  4e 54 20 4f 46 20 54 48  45 22 00 ba 08 8c 00 99  |NT OF THE"......|
00000090  22 1d 4d 41 43 48 49 4e  45 20 43 4f 44 45 20 4d  |".MACHINE CODE M|
000000a0  41 5a 45 20 47 45 4e 45  52 41 54 4f 52 2e 20 c1  |AZE GENERATOR. .|
000000b0  4c 54 48 4f 55 47 48 22  00 e8 08 96 00 99 22 20  |LTHOUGH"......" |
000000c0  4e 4f 54 20 49 44 45 4e  54 49 43 41 4c 2c 20 49  |NOT IDENTICAL, I|
000000d0  54 20 55 53 45 53 20 41  20 56 45 52 59 20 53 49  |T USES A VERY SI|
000000e0  4d 49 4c 41 52 22 00 16  09 a0 00 99 22 20 41 4c  |MILAR"......" AL|
000000f0  47 4f 52 49 54 48 4d 20  41 4e 44 20 4d 45 54 48  |GORITHM AND METH|
00000100  4f 44 20 4f 46 20 53 54  4f 52 49 4e 47 20 44 41  |OD OF STORING DA|
00000110  54 41 2e 22 00 2b 09 aa  00 99 22 11 1d c4 49 4d  |TA.".+...."...IM|
00000120  45 4e 53 49 4f 4e 53 3a  22 00 43 09 b4 00 99 22  |ENSIONS:".C...."|
00000130  11 1d cd 41 58 49 4d 55  4d 3a 20 31 38 2c 31 30  |...AXIMUM: 18,10|
00000140  22 00 58 09 be 00 99 22  1d cd 49 4e 49 4d 55 4d  |".X...."..INIMUM|
00000150  3a 20 31 2c 31 22 00 83  09 c8 00 99 22 1d d6 49  |: 1,1"......"..I|
00000160  53 49 42 4c 45 20 c3 48  41 52 41 43 54 45 52 53  |SIBLE .HARACTERS|
00000170  20 33 33 2d 31 33 32 2c  20 31 36 31 2d 32 35 35  | 33-132, 161-255|
00000180  22 00 ab 09 d2 00 85 22  11 1d c4 49 4d 45 4e 53  |"......"...IMENS|
00000190  49 4f 4e 53 3a 20 20 20  31 38 2c 31 30 9d 9d 9d  |IONS:   18,10...|
000001a0  9d 9d 9d 9d 22 3b 48 2c  56 00 f0 09 d7 00 8b 20  |....";H,V...... |
000001b0  48 b3 31 20 b0 20 56 b3  31 20 b0 20 48 b1 31 38  |H.1 . V.1 . H.18|
000001c0  20 b0 20 56 b1 31 30 20  a7 20 99 22 11 1d c4 49  | . V.10 . ."...I|
000001d0  4d 45 4e 53 49 4f 4e 53  20 4f 55 54 20 4f 46 20  |MENSIONS OUT OF |
000001e0  52 41 4e 47 45 20 21 22  3a 89 20 32 31 30 00 11  |RANGE !":. 210..|
000001f0  0a dc 00 85 22 1d c3 48  41 52 41 43 54 45 52 3a  |...."..HARACTER:|
00000200  20 20 20 20 32 35 35 9d  9d 9d 9d 9d 22 3b 43 00  |    255.....";C.|
00000210  4d 0a e1 00 8b 20 43 b3  33 33 20 b0 20 43 b1 32  |M.... C.33 . C.2|
00000220  35 35 20 a7 20 99 22 11  20 d4 52 59 20 41 20 44  |55 . .". .RY A D|
00000230  49 46 46 45 52 45 4e 54  20 43 48 41 52 41 43 54  |IFFERENT CHARACT|
00000240  45 52 2e 11 22 3a 89 20  32 32 30 00 85 0a e6 00  |ER..":. 220.....|
00000250  99 22 93 11 11 11 1d d4  48 49 53 20 57 49 4c 4c  |."......HIS WILL|
00000260  20 54 41 4b 45 20 41 52  4f 55 4e 44 22 3b b5 28  | TAKE AROUND";.(|
00000270  48 ac 56 ad 33 aa 31 29  3b 22 53 45 43 4f 4e 44  |H.V.3.1);"SECOND|
00000280  53 2e 22 00 96 0a f0 00  54 49 24 b2 22 30 30 30  |S.".....TI$."000|
00000290  30 30 30 22 00 9c 0a e5  03 3a 00 a2 0a e6 03 3a  |000".....:.....:|
000002a0  00 b2 0a e7 03 8f 20 4d  41 49 4e 20 4c 4f 4f 50  |...... MAIN LOOP|
000002b0  00 d2 0a e8 03 8d 20 31  30 30 30 30 20 3a 20 8f  |...... 10000 : .|
000002c0  20 53 45 54 55 50 20 56  41 52 49 41 42 4c 45 53  | SETUP VARIABLES|
000002d0  00 ed 0a f2 03 8d 20 35  30 30 30 20 20 3a 20 8f  |...... 5000  : .|
000002e0  20 50 52 49 4e 54 20 54  49 4d 45 00 01 0b fc 03  | PRINT TIME.....|
000002f0  8b 20 44 43 b1 30 20 a7  20 8d 20 32 30 31 30 00  |. DC.0 . . 2010.|
00000300  19 0b 06 04 4d 25 28 52  2c 53 29 b2 4d 25 28 52  |....M%(R,S).M%(R|
00000310  2c 53 29 20 b0 20 34 00  2a 0b 10 04 44 43 b2 54  |,S) . 4.*...DC.T|
00000320  28 bb 28 31 29 ac 54 29  00 45 0b 1a 04 8b 20 54  |(.(1).T).E.... T|
00000330  b1 30 20 a7 20 50 b2 50  aa 31 3a 50 25 28 50 29  |.0 . P.P.1:P%(P)|
00000340  b2 44 43 00 73 0b 24 04  8b 20 44 43 b2 31 20 a7  |.DC.s.$.. DC.1 .|
00000350  20 53 b2 53 ab 31 3a 4d  25 28 52 2c 53 29 b2 4d  | S.S.1:M%(R,S).M|
00000360  25 28 52 2c 53 29 20 b0  20 31 3a 89 20 31 31 31  |%(R,S) . 1:. 111|
00000370  30 00 a1 0b 2e 04 8b 20  44 43 b2 32 20 a7 20 4d  |0...... DC.2 . M|
00000380  25 28 52 2c 53 29 b2 4d  25 28 52 2c 53 29 20 b0  |%(R,S).M%(R,S) .|
00000390  20 31 3a 53 b2 53 aa 31  3a 89 20 31 31 31 30 00  | 1:S.S.1:. 1110.|
000003a0  cf 0b 38 04 8b 20 44 43  b2 33 20 a7 20 52 b2 52  |..8.. DC.3 . R.R|
000003b0  ab 31 3a 4d 25 28 52 2c  53 29 b2 4d 25 28 52 2c  |.1:M%(R,S).M%(R,|
000003c0  53 29 20 b0 20 32 3a 89  20 31 31 31 30 00 fd 0b  |S) . 2:. 1110...|
000003d0  42 04 8b 20 44 43 b2 34  20 a7 20 4d 25 28 52 2c  |B.. DC.4 . M%(R,|
000003e0  53 29 b2 4d 25 28 52 2c  53 29 20 b0 20 32 3a 52  |S).M%(R,S) . 2:R|
000003f0  b2 52 aa 31 3a 89 20 31  31 31 30 00 1b 0c 4c 04  |.R.1:. 1110...L.|
00000400  8d 20 33 30 31 30 3a 89  20 31 31 32 30 3a 20 8f  |. 3010:. 1120: .|
00000410  20 44 45 41 44 45 4e 44  21 00 33 0c 56 04 4d 25  | DEADEND!.3.V.M%|
00000420  28 52 2c 53 29 b2 4d 25  28 52 2c 53 29 20 b0 20  |(R,S).M%(R,S) . |
00000430  4f 00 44 0c 60 04 8b 20  50 b1 30 20 a7 20 31 30  |O.D.`.. P.0 . 10|
00000440  31 30 00 71 0c 6a 04 8d  20 34 30 31 30 3a 20 8f  |10.q.j.. 4010: .|
00000450  20 46 49 4e 49 53 48 45  44 2c 20 50 52 49 4e 54  | FINISHED, PRINT|
00000460  20 4f 55 54 20 20 20 20  20 42 4f 41 52 44 2e 00  | OUT     BOARD..|
00000470  8f 0c 74 04 97 20 31 39  38 2c 30 3a 20 8f 20 43  |..t.. 198,0: . C|
00000480  4c 45 41 52 20 4b 45 59  42 4f 41 52 44 00 a7 0c  |LEAR KEYBOARD...|
00000490  7e 04 a1 20 4b 24 3a 8b  20 4b 24 b2 22 22 20 a7  |~.. K$:. K$."" .|
000004a0  20 31 31 35 30 00 ad 0c  88 04 8a 00 b3 0c cf 07  | 1150...........|
000004b0  3a 00 d4 0c d0 07 8f 20  43 48 45 43 4b 20 41 56  |:...... CHECK AV|
000004c0  41 49 4c 41 42 4c 45 20  44 49 52 45 43 54 49 4f  |AILABLE DIRECTIO|
000004d0  4e 53 00 e3 0c da 07 54  28 30 29 b2 30 3a 54 b2  |NS.....T(0).0:T.|
000004e0  30 00 0c 0d e4 07 8b 20  53 b1 30 20 a7 20 8b 20  |0...... S.0 . . |
000004f0  4d 25 28 52 2c 53 ab 31  29 b2 30 20 a7 20 54 28  |M%(R,S.1).0 . T(|
00000500  54 29 b2 31 3a 54 b2 54  aa 31 00 35 0d ee 07 8b  |T).1:T.T.1.5....|
00000510  20 53 b3 56 20 a7 20 8b  20 4d 25 28 52 2c 53 aa  | S.V . . M%(R,S.|
00000520  31 29 b2 30 20 a7 20 54  28 54 29 b2 32 3a 54 b2  |1).0 . T(T).2:T.|
00000530  54 aa 31 00 5e 0d f8 07  8b 20 52 b1 30 20 a7 20  |T.1.^.... R.0 . |
00000540  8b 20 4d 25 28 52 ab 31  2c 53 29 b2 30 20 a7 20  |. M%(R.1,S).0 . |
00000550  54 28 54 29 b2 33 3a 54  b2 54 aa 31 00 87 0d 02  |T(T).3:T.T.1....|
00000560  08 8b 20 52 b3 48 20 a7  20 8b 20 4d 25 28 52 aa  |.. R.H . . M%(R.|
00000570  31 2c 53 29 b2 30 20 a7  20 54 28 54 29 b2 34 3a  |1,S).0 . T(T).4:|
00000580  54 b2 54 aa 31 00 8d 0d  0c 08 8e 00 93 0d b7 0b  |T.T.1...........|
00000590  3a 00 ad 0d b8 0b 8f 20  42 41 43 4b 54 52 41 43  |:...... BACKTRAC|
000005a0  4b 20 54 48 52 55 20 4d  41 5a 45 00 b5 0d c2 0b  |K THRU MAZE.....|
000005b0  47 b2 31 00 d6 0d cc 0b  51 b2 50 25 28 50 29 3a  |G.1.....Q.P%(P):|
000005c0  8d 20 35 30 30 30 20 3a  20 8f 20 52 45 50 45 41  |. 5000 : . REPEA|
000005d0  54 2e 2e 2e 00 f2 0d d6  0b 8b 20 51 b2 31 20 a7  |T......... Q.1 .|
000005e0  20 53 b2 53 aa 31 20 20  3a 20 8f 20 44 4f 57 4e  | S.S.1  : . DOWN|
000005f0  00 0c 0e e0 0b 8b 20 51  b2 32 20 a7 20 53 b2 53  |...... Q.2 . S.S|
00000600  ab 31 20 20 3a 20 8f 20  55 50 00 29 0e ea 0b 8b  |.1  : . UP.)....|
00000610  20 51 b2 33 20 a7 20 52  b2 52 aa 31 20 20 3a 20  | Q.3 . R.R.1  : |
00000620  8f 20 52 49 47 48 54 00  44 0e f4 0b 8b 20 51 b2  |. RIGHT.D.... Q.|
00000630  34 20 a7 20 52 b2 52 ab  31 20 20 3a 8f 20 4c 45  |4 . R.R.1  :. LE|
00000640  46 54 00 4f 0e fe 0b 8d  20 32 30 31 30 00 65 0e  |FT.O.... 2010.e.|
00000650  08 0c 50 b2 50 ab 31 3a  8b 20 50 b2 30 20 a7 20  |..P.P.1:. P.0 . |
00000660  47 b2 30 00 75 0e 12 0c  8b 20 54 b1 30 20 a7 20  |G.0.u.... T.0 . |
00000670  47 b2 30 00 96 0e 1c 0c  8b 20 47 20 a7 20 33 30  |G.0...... G . 30|
00000680  32 30 20 20 20 20 20 3a  20 8f 20 55 4e 54 49 4c  |20     : . UNTIL|
00000690  20 47 3d 30 00 9c 0e 26  0c 8e 00 a2 0e 9f 0f 3a  | G=0...&.......:|
000006a0  00 b3 0e a0 0f 8f 20 50  52 49 4e 54 20 4d 41 5a  |...... PRINT MAZ|
000006b0  45 00 cb 0e aa 0f 4d 25  28 48 2c 56 29 b2 4d 25  |E.....M%(H,V).M%|
000006c0  28 48 2c 56 29 20 b0 20  31 00 db 0e b4 0f 99 22  |(H,V) . 1......"|
000006d0  93 22 3a 8d 20 35 30 30  30 00 e8 0e be 0f 99 43  |.":. 5000......C|
000006e0  24 3b 22 20 22 3b 00 04  0f c8 0f 81 20 49 b2 31  |$;" ";...... I.1|
000006f0  20 a4 20 48 3a 99 43 24  3b 43 24 3b 3a 82 3a 99  | . H:.C$;C$;:.:.|
00000700  43 24 00 12 0f d2 0f 81  20 4a b2 30 20 a4 20 56  |C$...... J.0 . V|
00000710  00 1c 0f dc 0f 99 20 43  24 3b 00 2a 0f e6 0f 81  |...... C$;.*....|
00000720  20 49 b2 30 20 a4 20 48  00 4c 0f f0 0f 8b 20 4d  | I.0 . H.L.... M|
00000730  25 28 49 2c 4a 29 20 af  20 32 20 a7 20 99 22 20  |%(I,J) . 2 . ." |
00000740  20 22 3b 3a 89 20 34 31  30 30 00 59 0f fa 0f 99  | ";:. 4100.Y....|
00000750  22 20 22 3b 43 24 3b 00  63 0f 04 10 82 20 49 3a  |" ";C$;.c.... I:|
00000760  99 00 71 0f 0e 10 81 20  49 b2 30 20 a4 20 48 00  |..q.... I.0 . H.|
00000770  95 0f 18 10 8b 20 4d 25  28 49 2c 4a 29 20 af 20  |..... M%(I,J) . |
00000780  31 20 a7 20 99 43 24 3b  22 20 22 3b 3a 89 20 34  |1 . .C$;" ";:. 4|
00000790  31 34 30 00 a1 0f 22 10  99 43 24 3b 43 24 3b 00  |140..."..C$;C$;.|
000007a0  ae 0f 2c 10 82 20 49 3a  99 20 43 24 00 b6 0f 36  |..,.. I:. C$...6|
000007b0  10 82 20 4a 00 bc 0f 40  10 8e 00 d1 0f 88 13 99  |.. J...@........|
000007c0  22 13 11 1d d4 49 4d 45  3a 1d 22 3b 54 49 24 00  |"....IME:.";TI$.|
000007d0  d7 0f 92 13 8e 00 fb 0f  10 27 86 20 50 25 28 28  |.........'. P%((|
000007e0  48 aa 31 29 ac 28 56 aa  31 29 29 2c 4d 25 28 48  |H.1).(V.1)),M%(H|
000007f0  2c 56 29 2c 54 25 28 33  29 00 0c 10 1a 27 44 43  |,V),T%(3)....'DC|
00000800  b2 31 3a 43 24 b2 c7 28  43 29 00 12 10 24 27 8e  |.1:C$..(C)...$'.|
00000810  00 22 10 20 4e 8f 20 56  41 52 49 41 42 4c 45 53  |.". N. VARIABLES|
00000820  00 3a 10 2a 4e 8f 20 4d  25 28 48 2c 56 29 2d 4d  |.:.*N. M%(H,V)-M|
00000830  41 5a 45 20 44 41 54 41  00 57 10 34 4e 8f 20 50  |AZE DATA.W.4N. P|
00000840  25 28 50 29 20 20 2d 4d  41 5a 45 20 4d 4f 56 45  |%(P)  -MAZE MOVE|
00000850  4d 45 4e 54 53 00 77 10  3e 4e 8f 20 50 20 20 20  |MENTS.w.>N. P   |
00000860  20 20 20 2d 50 4f 53 49  54 49 4f 4e 20 49 4e 20  |   -POSITION IN |
00000870  50 25 28 2d 29 00 9b 10  48 4e 8f 20 48 2c 56 20  |P%(-)...HN. H,V |
00000880  20 20 20 2d 48 4f 52 49  5a 20 56 45 52 54 20 44  |   -HORIZ VERT D|
00000890  49 4d 45 4e 53 49 4f 4e  53 00 bd 10 52 4e 8f 20  |IMENSIONS...RN. |
000008a0  52 2c 53 20 20 20 20 2d  50 4f 53 49 54 49 4f 4e  |R,S    -POSITION|
000008b0  20 49 4e 20 4d 25 28 2d  2c 2d 29 00 d9 10 5c 4e  | IN M%(-,-)...\N|
000008c0  8f 20 49 2c 4a 20 20 20  20 2d 4c 4f 4f 50 20 43  |. I,J    -LOOP C|
000008d0  4f 55 4e 54 45 52 53 00  f1 10 66 4e 8f 20 43 24  |OUNTERS...fN. C$|
000008e0  20 20 20 20 20 2d 43 48  41 52 41 43 54 45 52 00  |     -CHARACTER.|
000008f0  14 11 70 4e 8f 20 44 43  20 20 20 20 20 2d 44 49  |..pN. DC     -DI|
00000900  52 45 43 54 49 4f 4e 20  43 48 4f 53 45 4e 20 31  |RECTION CHOSEN 1|
00000910  2d 34 00 33 11 7a 4e 8f  20 54 20 20 20 20 20 20  |-4.3.zN. T      |
00000920  2d 4e 4f 2e 20 4f 46 20  44 49 46 46 45 52 45 4e  |-NO. OF DIFFEREN|
00000930  54 00 53 11 84 4e 8f 20  20 20 20 20 20 20 20 20  |T.S..N.         |
00000940  20 20 20 20 20 20 20 44  49 52 45 43 54 49 4f 4e  |       DIRECTION|
00000950  53 00 76 11 8e 4e 8f 20  54 28 54 29 20 20 20 2d  |S.v..N. T(T)   -|
00000960  44 49 46 46 45 52 45 4e  54 20 44 49 52 45 43 54  |DIFFERENT DIRECT|
00000970  49 4f 4e 53 00 8e 11 98  4e 8f 20 20 20 20 20 20  |IONS....N.      |
00000980  20 20 20 41 56 41 49 4c  41 42 4c 45 00 00 00     |   AVAILABLE...|
0000098f