Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_53.ADF » G/HOUSE4

G/HOUSE4

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: G/HOUSE4
Read OK:
File size: 12FD bytes
Load address: FFFF0E00
Exec address: FFFF802B
Duplicates

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

File contents
   10REM HOUSE THE ADVENTURE GAME
   20REM (C) Acorn Computing
   30 
   40MODE6
   50CLEAR:PRINTTAB(13,1)"Please wait...":PROCload:CLS:*FX21
   60REPEAT:PROCinit:PROClook:REPEAT:PROCauto:IF dead GOTO 100
   70PROCenter:PROCinput:IF Z% GOTO100
   80PROCmove:IFZ% GOTO100
   90PROCgde:IF Z%=0 PROCform(6,"Sorry, you can't do that...")
  100Z%=0:F$="":UNTIL dead:PROCrepeat:UNTIL0
  110DEFPROCmess(M%):PROCform(6,MES$(M%)):ENDPROC
  120DEFPROClook:IF (1+R% MODMX)=2 AND (1+R% DIVMX)=7 THEN R%=R%-1
  121IF (1+R% MODMX)=1 AND (1+R% DIVMX)=7 THEN R%=R%-7
  122PROCform(2,DES$(1+R% MODMX,1+R% DIVMX))
  123M%=0:FOR S=1 TO OBJ:IF ?(obc-1+S)=R% AND OBD$(S)<>"<undefined>" M%=M%+1
  130NEXT:IF M%=0 GOTO 160
  140PROCform2(0,3,"You can also see"):FOR S=1 TO OBJ:IF ?(obc-1+S)=R% AND OBD$(S)<>"<undefined>" PROCform2(M%,3,OBD$(S)+",")
  150NEXT:PRINTCHR$8;"."
  160S$="EXITS: ":IF FNex("N") S$=S$+"NORTH, "
  170IF FNex("S") S$=S$+"SOUTH, "
  180IF FNex("E") S$=S$+"EAST, "
  190IF FNex("W") S$=S$+"WEST, "
  200IF LENS$=7 ENDPROC ELSE S$=LEFT$(S$,LENS$-2):PROCform(1,S$):ENDPROC
  210DEFPROCform(CL,ST$):CL=7:REPEAT
  220IFLEFT$(ST$,1)=" " ST$=RIGHT$(ST$,LENST$-1):GOTO220
  230IF LEN(ST$)<=38 PRINT" ";ST$:UNTIL1:ENDPROC
  240ES$=LEFT$(ST$,38)
  250LSF=0:FOR SSC=LENES$ TO 1 STEP-1:IF MID$(ES$,SSC,1)=" " AND LSF=0 LSF=SSC
  260NEXT
  270IF LSF=0 LSF=38
  280ES$=LEFT$(ES$,LSF)
  290ST$=RIGHT$(ST$,LENST$-LENES$)
  300PRINT" ";:PRINTES$
  310UNTIL0
  320DEFPROCinit:oc=0:Z%=0:dead=FALSE:FORR%=1 TO OBJ:?(obc+R%-1)=?(obl+R%-1):IF?(obl+R%-1)=MX*MY+1 oc=oc+1
  330IFOBD$(R%)="<undefined>" ?(obl+R%-1)=MX*MY
  340NEXT:R%=sloc:ENDPROC
  350DEFPROCload
  360F$="G.HOUSDAT"
  370VDU23;8202;0;0;0;
  380X=OPENIN(F$):INPUT#X,MX,MY,MM,OBJ,P1:DIMP1$(P1),MES$(MM),OBJ$(OBJ),OBD$(OBJ),obc OBJ,obl OBJ,DES$(MX,MY),EXI$(MX,MY):FOR Z%=1 TO MM:INPUT#X,MES$(Z%):NEXT:FORZ%=1 TO P1:INPUT#X,P1$(Z%):NEXT:FORZ%=1 TO MX:FOR R%=1 TO MY
  390INPUT#X,DES$(Z%,R%),EXI$(Z%,R%):NEXT,:FORZ%=1 TO OBJ:INPUT#X,OBJ$(Z%),OBD$(Z%),?(obl-1+Z%):NEXT:FORZ%=&880 TO &B14:?Z%=BGET#X:NEXT:INPUT#X,sloc,stre:CLOSE#X:CLS:ENDPROC
  400DEFPROCauto:FORW%=1TO30:V%=&9DE+(W%*10):IFR%=?V% OR ?V%=255 ELSE NEXT:ENDPROC
  410IFFNcarr(V%?1) OR V%?1=0 ELSE NEXT:ENDPROC
  420IFFNpres(V%?2) OR V%?2=0 ELSE NEXT:ENDPROC
  430IF NOT(FNpres(V%?3)) OR V%?3=0 ELSE NEXT:ENDPROC
  440IF V%?4<>0 PROCmess(V%?4)
  450IF V%?5<>0 obc?(V%?5-1)=MX*MY
  460IF V%?6<>0 obc?(V%?6-1)=MX*MY+1
  470IF V%?7<>0 obc?(V%?7-1)=R%
  480IF V%?8=1 dead=TRUE
  490IF V%?9<>255 AND V%?9<>R% R%=V%?9:PROClook
  500PROCcobc
  510W%=30:NEXT:ENDPROC
  520DEFPROCenter
  530INPUTLINE'" What now?"F$:IFF$=""GOTO530 ELSE IF F$="N" F$="NORTH"
  540IFF$="S" F$="SOUTH" ELSE IFF$="E" F$="EAST"
  550IFF$="W" F$="WEST"
  560ENDPROC
  570DEFFNcarr(U%):U%=U%-1:IF U%<0 OR U%>(OBJ-1) =0 ELSE IF obc?U%=MX*MY+1 =-1 ELSE =0
  580DEFFNpres(U%):U%=U%-1:IF U%<0 OR U%+1>OBJ =0 ELSE IF obc?U%=MX*MY+1 =-1 ELSE IF obc?U%=R% =-1 ELSE =0
  590DEFPROCinput:FORW%=1TOP1:V%=&874+(W%*12):IF(FNpline(F$,P1$(W%))=0 OR P1$(W%)="") NEXT:ENDPROC ELSE IFR%=?V% OR ?V%=255 ELSE NEXT:ENDPROC
  600IFFNcarr(V%?1) OR V%?1=0 ELSE NEXT:ENDPROC
  610IFFNcarr(V%?2) OR V%?2=0 ELSE NEXT:ENDPROC
  620IFFNpres(V%?3) OR V%?3=0 ELSE NEXT:ENDPROC
  630IF NOTFNpres(V%?4) OR V%?4=0 ELSE NEXT:ENDPROC
  640IFV%?5>0 PROCmess(V%?5)
  650IFV%?6>0 obc?(V%?6-1)=MX*MY
  660IFV%?7>0 obc?(V%?7-1)=MX*MY
  670IFV%?8>0 obc?(V%?8-1)=MX*MY+1
  680IFV%?9>0 obc?(V%?9-1)=R%
  690IFV%?10=1 dead=1
  700IFV%?11<255 R%=V%?11:PROClook
  710PROCcobc
  720Z%=1:W%=P1:NEXT:ENDPROC
  730DEFFNpline(V$,W$):U%=0:FOR T%=1 TO LENW$:IFMID$(W$,T%,1)=" " U%=U%+1:NEXTELSENEXT
  740IFU%=0 U%=2:FORT%=2 TO 2:GOTO770
  750FOR T%=1 TO U%:BZ%=0:FORIA%=1 TO LENW$:IFBZ%=0 AND MID$(W$,IA%,1)=" " BZ%=IA%
  760NEXT:BZ$=LEFT$(W$,BZ%-1):W$=RIGHT$(W$,LENW$-LENBZ$-1):IF INSTR(V$,BZ$)<1 THEN T%=U%:NEXT:=0
  770NEXT:IF INSTR(V$,W$)<1 =0 ELSE =-1
  780NEXT:=-1
  790DEFPROCmove:IF FNpline(F$,"NORTH") AND FNex("N") Z%=1:R%=R%+MX:PROClook:ENDPROC
  800IF FNpline(F$,"SOUTH") AND FNex("S") Z%=1:R%=R%-MX:PROClook:ENDPROC
  810IF FNpline(F$,"EAST") AND FNex("E") R%=R%+1:Z%=1:PROClook:ENDPROC
  820IF FNpline(F$,"WEST") AND FNex("W") Z%=1:R%=R%-1:PROClook:ENDPROC
  830ENDPROC
  840DEFFNex(BZ$):IF INSTR(EXI$(1+R% MODMX,1+R% DIVMX),BZ$) THEN =-1 ELSE =0
  850DEFPROCgde:IF FNpline(F$,"QUIT") Z%=1:dead=-1:ENDPROC
  860IF FNpline(F$,"INV") PROCinv:ENDPROC
  870IFFNpline(F$,"LOOK") PROClook:Z%=1:ENDPROC
  880IFFNpline(F$,"GET") OR FNpline(F$,"TAKE") PROCget:ENDPROC
  890IFFNpline(F$,"DROP") PROCdrop:ENDPROC
  900IFFNpline(F$,"SAVE GAME") PROCsave:Z%=1:ENDPROC
  910IFFNpline(F$,"LOAD GAME") PROCld:Z%=1:ENDPROC
  920ENDPROC
  930DEFPROCget:IF stre<oc ENDPROC
  940FOR IA%=1 TO OBJ:IF ASC(LEFT$(OBJ$(IA%),1)) MOD2<>0 NEXT:ENDPROC
  950IF FNpres(IA%) ELSE NEXT:ENDPROC
  960IF FNcarr(IA%) NEXT:ENDPROC
  970IF NOT FNpline(F$,RIGHT$(OBJ$(IA%),LENOBJ$(IA%)-1)) NEXT:ENDPROC
  980PROCform(6,"Okay."):?(obc-1+IA%)=MX*MY+1:Z%=1:IA%=OBJ:NEXT:oc=oc+1:ENDPROC
  990DEFPROCrepeat:PRINT'"     Press <SPACE> to play again...":REPEAT UNTIL GET=32:CLS:ENDPROC
 1000DEFPROCdrop
 1010IF oc=0 ENDPROC ELSE FOR IA%=1 TO OBJ:IF ASC(LEFT$(OBJ$(IA%),1))<>0 AND ASC(LEFT$(OBJ$(IA%),1))<>3 NEXT:ENDPROC
 1020IFNOTFNcarr(IA%) NEXT:ENDPROC
 1030IF NOT FNpline(F$,RIGHT$(OBJ$(IA%),LEN(OBJ$(IA%))-1)) NEXT:ENDPROC
 1040PROCform(6,"Okay."):?(obc-1+IA%)=R%:Z%=1:IA%=OBJ:oc=oc-1:NEXT:ENDPROC
 1050DEFPROCinv:M%=0:FORIA%=1 TO OBJ:IFobc?(IA%-1)=MX*MY+1 M%=M%+1
 1060NEXT:IF M%=0 Z%=1:PROCform(5,"You are carrying nothing at the moment."):ENDPROC
 1070PROCform2(0,5,"You have"):FORIA%=1 TO OBJ:IFobc?(IA%-1)=MX*MY+1 PROCform2(M%,5,OBD$(IA%)+",")
 1080NEXT
 1090PRINTCHR$8;".":Z%=1:ENDPROC
 1100DEFPROCsave:X=OPENOUT("ADSAVE"):PRINT#X,R%,oc:FORIA%=0 TO OBJ-1:PRINT#X,obc?IA%:NEXT:CLOSE#X:PROCform(6,"Okay."):ENDPROC
 1110DEFPROCld:X=OPENIN("ADSAVE"):INPUT#X,R%,oc:FORIA%=0 TO OBJ-1:INPUT#X,obc?IA%:NEXT:CLOSE#X:PROClook:ENDPROC
 1120DEFPROCcobc:oc=0:FORIA%=0 TO OBJ-1:IFobc?IA%=MX*MY+1 oc=oc+1
 1130NEXT:ENDPROC
 1140DEFPROCform2(L%,CL,ST$):CL=7:IF L%>0 PRINTCHR$11
 1150REPEAT
 1160IFLEFT$(ST$,1)=" " ST$=RIGHT$(ST$,LENST$-1):GOTO1160
 1170IF LEN(ST$)<=38-L% PRINTTAB(L%,VPOS);" ";ST$;:M%=-POS*(POS<37):IF M%=0 PRINT:UNTIL1:ENDPROC ELSE IF LEN(ST$)<=38-L% UNTIL1:ENDPROC
 1180ES$=LEFT$(ST$,38-L%)
 1190LSF=0:FOR SSC=LENES$ TO 1 STEP-1:IF MID$(ES$,SSC,1)=" " AND LSF=0 LSF=SSC
 1200NEXT
 1210IF LSF=0 AND L%=0 LSF=38-L% ELSE IF LSF=0 PRINT:L%=0:UNTIL0
 1220ES$=LEFT$(ES$,LSF)
 1230ST$=RIGHT$(ST$,LENST$-LENES$)
 1240PRINTTAB(L%,VPOS);" ";ES$
 1250L%=0:M%=0
 1260UNTIL0

� HOUSE THE ADVENTURE GAME
� (C) Acorn Computing
 
(�6
2+�:�13,1)"Please wait...":�load:�:*FX21
<'�:�init:�look:�:�auto:� dead � �Dd@
F�enter:�input:� Z% �Dd@
P�move:�Z% �Dd@
Z6�gde:� Z%=0 �form(6,"Sorry, you can't do that...")
d Z%=0:F$="":� dead:�repeat:�0
n"��mess(M%):�form(6,MES$(M%)):�
x2��look:� (1+R% �MX)=2 � (1+R% �MX)=7 � R%=R%-1
y+� (1+R% �MX)=1 � (1+R% �MX)=7 � R%=R%-7
z$�form(2,DES$(1+R% �MX,1+R% �MX))
{EM%=0:� S=1 � OBJ:� ?(obc-1+S)=R% � OBD$(S)<>"<undefined>" M%=M%+1
��:� M%=0 � �t`@
�p�form2(0,3,"You can also see"):� S=1 � OBJ:� ?(obc-1+S)=R% � OBD$(S)<>"<undefined>" �form2(M%,3,OBD$(S)+",")
�
�:�8;"."
�+S$="EXITS: ":� �ex("N") S$=S$+"NORTH, "
�� �ex("S") S$=S$+"SOUTH, "
�� �ex("E") S$=S$+"EAST, "
�� �ex("W") S$=S$+"WEST, "
�+� �S$=7 � � S$=�S$,�S$-2):�form(1,S$):�
���form(CL,ST$):CL=7:�
�'�ST$,1)=" " ST$=�ST$,�ST$-1):�d\@
�� �(ST$)<=38 �" ";ST$:�1:�
�ES$=�ST$,38)
�>LSF=0:� SSC=�ES$ � 1 �-1:� �ES$,SSC,1)=" " � LSF=0 LSF=SSC
�
� LSF=0 LSF=38
ES$=�ES$,LSF)
"ST$=�ST$,�ST$-�ES$)
,�" ";:�ES$
6�0
@\��init:oc=0:Z%=0:dead=�:�R%=1 � OBJ:?(obc+R%-1)=?(obl+R%-1):�?(obl+R%-1)=MX*MY+1 oc=oc+1
J-�OBD$(R%)="<undefined>" ?(obl+R%-1)=MX*MY
T�:R%=sloc:�
^
��load
hF$="G.HOUSDAT"
r�23;8202;0;0;0;
|�X=�(F$):�#X,MX,MY,MM,OBJ,P1:�P1$(P1),MES$(MM),OBJ$(OBJ),OBD$(OBJ),obc OBJ,obl OBJ,DES$(MX,MY),EXI$(MX,MY):� Z%=1 � MM:�#X,MES$(Z%):�:�Z%=1 � P1:�#X,P1$(Z%):�:�Z%=1 � MX:� R%=1 � MY
���#X,DES$(Z%,R%),EXI$(Z%,R%):�,:�Z%=1 � OBJ:�#X,OBJ$(Z%),OBD$(Z%),?(obl-1+Z%):�:�Z%=&880 � &B14:?Z%=�#X:�:�#X,sloc,stre:�#X:�:�
�;��auto:�W%=1�30:V%=&9DE+(W%*10):�R%=?V% � ?V%=255 � �:�
��carr(V%?1) � V%?1=0 � �:�
��pres(V%?2) � V%?2=0 � �:�
�#� �(�pres(V%?3)) � V%?3=0 � �:�
�� V%?4<>0 �mess(V%?4)
� � V%?5<>0 obc?(V%?5-1)=MX*MY
�"� V%?6<>0 obc?(V%?6-1)=MX*MY+1
�� V%?7<>0 obc?(V%?7-1)=R%
�� V%?8=1 dead=�
�(� V%?9<>255 � V%?9<>R% R%=V%?9:�look
�	�cobc
�
W%=30:�:�
��enter
7�'" What now?"F$:�F$=""�TRB � � F$="N" F$="NORTH"
*�F$="S" F$="SOUTH" � �F$="E" F$="EAST"
&�F$="W" F$="WEST"
0�
:Iݤcarr(U%):U%=U%-1:� U%<0 � U%>(OBJ-1) =0 � � obc?U%=MX*MY+1 =-1 � =0
DYݤpres(U%):U%=U%-1:� U%<0 � U%+1>OBJ =0 � � obc?U%=MX*MY+1 =-1 � � obc?U%=R% =-1 � =0
Ng��input:�W%=1�P1:V%=&874+(W%*12):�(�pline(F$,P1$(W%))=0 � P1$(W%)="") �:� � �R%=?V% � ?V%=255 � �:�
X�carr(V%?1) � V%?1=0 � �:�
b�carr(V%?2) � V%?2=0 � �:�
l�pres(V%?3) � V%?3=0 � �:�
v!� ��pres(V%?4) � V%?4=0 � �:�
��V%?5>0 �mess(V%?5)
��V%?6>0 obc?(V%?6-1)=MX*MY
��V%?7>0 obc?(V%?7-1)=MX*MY
� �V%?8>0 obc?(V%?8-1)=MX*MY+1
��V%?9>0 obc?(V%?9-1)=R%
��V%?10=1 dead=1
��V%?11<255 R%=V%?11:�look
�	�cobc
�Z%=1:W%=P1:�:�
�?ݤpline(V$,W$):U%=0:� T%=1 � �W$:�W$,T%,1)=" " U%=U%+1:��
��U%=0 U%=2:�T%=2 � 2:�TBC
�B� T%=1 � U%:BZ%=0:�IA%=1 � �W$:�BZ%=0 � �W$,IA%,1)=" " BZ%=IA%
�A�:BZ$=�W$,BZ%-1):W$=�W$,�W$-�BZ$-1):� �V$,BZ$)<1 � T%=U%:�:=0
�:� �V$,W$)<1 =0 � =-1
	�:=-1
@��move:� �pline(F$,"NORTH") � �ex("N") Z%=1:R%=R%+MX:�look:�
 9� �pline(F$,"SOUTH") � �ex("S") Z%=1:R%=R%-MX:�look:�
*7� �pline(F$,"EAST") � �ex("E") R%=R%+1:Z%=1:�look:�
47� �pline(F$,"WEST") � �ex("W") Z%=1:R%=R%-1:�look:�
>�
H8ݤex(BZ$):� �EXI$(1+R% �MX,1+R% �MX),BZ$) � =-1 � =0
R,��gde:� �pline(F$,"QUIT") Z%=1:dead=-1:�
\� �pline(F$,"INV") �inv:�
f#�pline(F$,"LOOK") �look:Z%=1:�
p0�pline(F$,"GET") � �pline(F$,"TAKE") �get:�
z�pline(F$,"DROP") �drop:�
�(�pline(F$,"SAVE GAME") �save:Z%=1:�
�&�pline(F$,"LOAD GAME") �ld:Z%=1:�
��
���get:� stre<oc �
�.� IA%=1 � OBJ:� �(�OBJ$(IA%),1)) �2<>0 �:�
�� �pres(IA%) � �:�
�� �carr(IA%) �:�
�/� � �pline(F$,�OBJ$(IA%),�OBJ$(IA%)-1)) �:�
�B�form(6,"Okay."):?(obc-1+IA%)=MX*MY+1:Z%=1:IA%=OBJ:�:oc=oc+1:�
�A��repeat:�'"     Press <SPACE> to play again...":� � �=32:�:�
�
��drop
�L� oc=0 � � � IA%=1 � OBJ:� �(�OBJ$(IA%),1))<>0 � �(�OBJ$(IA%),1))<>3 �:�
�笤carr(IA%) �:�
1� � �pline(F$,�OBJ$(IA%),�(OBJ$(IA%))-1)) �:�
=�form(6,"Okay."):?(obc-1+IA%)=R%:Z%=1:IA%=OBJ:oc=oc-1:�:�
8��inv:M%=0:�IA%=1 � OBJ:�obc?(IA%-1)=MX*MY+1 M%=M%+1
$F�:� M%=0 Z%=1:�form(5,"You are carrying nothing at the moment."):�
.W�form2(0,5,"You have"):�IA%=1 � OBJ:�obc?(IA%-1)=MX*MY+1 �form2(M%,5,OBD$(IA%)+",")
8�
B�8;".":Z%=1:�
LV��save:X=�("ADSAVE"):�#X,R%,oc:�IA%=0 � OBJ-1:�#X,obc?IA%:�:�#X:�form(6,"Okay."):�
VI��ld:X=�("ADSAVE"):�#X,R%,oc:�IA%=0 � OBJ-1:�#X,obc?IA%:�:�#X:�look:�
`7��cobc:oc=0:�IA%=0 � OBJ-1:�obc?IA%=MX*MY+1 oc=oc+1
j�:�
t'��form2(L%,CL,ST$):CL=7:� L%>0 �11
~�
�'�ST$,1)=" " ST$=�ST$,�ST$-1):�tHD
�V� �(ST$)<=38-L% �L%,�);" ";ST$;:M%=-�*(�<37):� M%=0 �:�1:� � � �(ST$)<=38-L% �1:�
�ES$=�ST$,38-L%)
�>LSF=0:� SSC=�ES$ � 1 �-1:� �ES$,SSC,1)=" " � LSF=0 LSF=SSC
��
�0� LSF=0 � L%=0 LSF=38-L% � � LSF=0 �:L%=0:�0
�ES$=�ES$,LSF)
�ST$=�ST$,�ST$-�ES$)
��L%,�);" ";ES$
�
L%=0:M%=0
��0
�
00000000  0d 00 0a 1e f4 20 48 4f  55 53 45 20 54 48 45 20  |..... HOUSE THE |
00000010  41 44 56 45 4e 54 55 52  45 20 47 41 4d 45 0d 00  |ADVENTURE GAME..|
00000020  14 19 f4 20 28 43 29 20  41 63 6f 72 6e 20 43 6f  |... (C) Acorn Co|
00000030  6d 70 75 74 69 6e 67 0d  00 1e 05 20 0d 00 28 06  |mputing.... ..(.|
00000040  eb 36 0d 00 32 2b d8 3a  f1 8a 31 33 2c 31 29 22  |.6..2+.:..13,1)"|
00000050  50 6c 65 61 73 65 20 77  61 69 74 2e 2e 2e 22 3a  |Please wait...":|
00000060  f2 6c 6f 61 64 3a db 3a  2a 46 58 32 31 0d 00 3c  |.load:.:*FX21..<|
00000070  27 f5 3a f2 69 6e 69 74  3a f2 6c 6f 6f 6b 3a f5  |'.:.init:.look:.|
00000080  3a f2 61 75 74 6f 3a e7  20 64 65 61 64 20 e5 20  |:.auto:. dead . |
00000090  8d 44 64 40 0d 00 46 1c  f2 65 6e 74 65 72 3a f2  |.Dd@..F..enter:.|
000000a0  69 6e 70 75 74 3a e7 20  5a 25 20 e5 8d 44 64 40  |input:. Z% ..Dd@|
000000b0  0d 00 50 13 f2 6d 6f 76  65 3a e7 5a 25 20 e5 8d  |..P..move:.Z% ..|
000000c0  44 64 40 0d 00 5a 36 f2  67 64 65 3a e7 20 5a 25  |Dd@..Z6.gde:. Z%|
000000d0  3d 30 20 f2 66 6f 72 6d  28 36 2c 22 53 6f 72 72  |=0 .form(6,"Sorr|
000000e0  79 2c 20 79 6f 75 20 63  61 6e 27 74 20 64 6f 20  |y, you can't do |
000000f0  74 68 61 74 2e 2e 2e 22  29 0d 00 64 20 5a 25 3d  |that...")..d Z%=|
00000100  30 3a 46 24 3d 22 22 3a  fd 20 64 65 61 64 3a f2  |0:F$="":. dead:.|
00000110  72 65 70 65 61 74 3a fd  30 0d 00 6e 22 dd f2 6d  |repeat:.0..n"..m|
00000120  65 73 73 28 4d 25 29 3a  f2 66 6f 72 6d 28 36 2c  |ess(M%):.form(6,|
00000130  4d 45 53 24 28 4d 25 29  29 3a e1 0d 00 78 32 dd  |MES$(M%)):...x2.|
00000140  f2 6c 6f 6f 6b 3a e7 20  28 31 2b 52 25 20 83 4d  |.look:. (1+R% .M|
00000150  58 29 3d 32 20 80 20 28  31 2b 52 25 20 81 4d 58  |X)=2 . (1+R% .MX|
00000160  29 3d 37 20 8c 20 52 25  3d 52 25 2d 31 0d 00 79  |)=7 . R%=R%-1..y|
00000170  2b e7 20 28 31 2b 52 25  20 83 4d 58 29 3d 31 20  |+. (1+R% .MX)=1 |
00000180  80 20 28 31 2b 52 25 20  81 4d 58 29 3d 37 20 8c  |. (1+R% .MX)=7 .|
00000190  20 52 25 3d 52 25 2d 37  0d 00 7a 24 f2 66 6f 72  | R%=R%-7..z$.for|
000001a0  6d 28 32 2c 44 45 53 24  28 31 2b 52 25 20 83 4d  |m(2,DES$(1+R% .M|
000001b0  58 2c 31 2b 52 25 20 81  4d 58 29 29 0d 00 7b 45  |X,1+R% .MX))..{E|
000001c0  4d 25 3d 30 3a e3 20 53  3d 31 20 b8 20 4f 42 4a  |M%=0:. S=1 . OBJ|
000001d0  3a e7 20 3f 28 6f 62 63  2d 31 2b 53 29 3d 52 25  |:. ?(obc-1+S)=R%|
000001e0  20 80 20 4f 42 44 24 28  53 29 3c 3e 22 3c 75 6e  | . OBD$(S)<>"<un|
000001f0  64 65 66 69 6e 65 64 3e  22 20 4d 25 3d 4d 25 2b  |defined>" M%=M%+|
00000200  31 0d 00 82 13 ed 3a e7  20 4d 25 3d 30 20 e5 20  |1.....:. M%=0 . |
00000210  8d 74 60 40 0d 00 8c 70  f2 66 6f 72 6d 32 28 30  |.t`@...p.form2(0|
00000220  2c 33 2c 22 59 6f 75 20  63 61 6e 20 61 6c 73 6f  |,3,"You can also|
00000230  20 73 65 65 22 29 3a e3  20 53 3d 31 20 b8 20 4f  | see"):. S=1 . O|
00000240  42 4a 3a e7 20 3f 28 6f  62 63 2d 31 2b 53 29 3d  |BJ:. ?(obc-1+S)=|
00000250  52 25 20 80 20 4f 42 44  24 28 53 29 3c 3e 22 3c  |R% . OBD$(S)<>"<|
00000260  75 6e 64 65 66 69 6e 65  64 3e 22 20 f2 66 6f 72  |undefined>" .for|
00000270  6d 32 28 4d 25 2c 33 2c  4f 42 44 24 28 53 29 2b  |m2(M%,3,OBD$(S)+|
00000280  22 2c 22 29 0d 00 96 0d  ed 3a f1 bd 38 3b 22 2e  |",").....:..8;".|
00000290  22 0d 00 a0 2b 53 24 3d  22 45 58 49 54 53 3a 20  |"...+S$="EXITS: |
000002a0  22 3a e7 20 a4 65 78 28  22 4e 22 29 20 53 24 3d  |":. .ex("N") S$=|
000002b0  53 24 2b 22 4e 4f 52 54  48 2c 20 22 0d 00 aa 1e  |S$+"NORTH, "....|
000002c0  e7 20 a4 65 78 28 22 53  22 29 20 53 24 3d 53 24  |. .ex("S") S$=S$|
000002d0  2b 22 53 4f 55 54 48 2c  20 22 0d 00 b4 1d e7 20  |+"SOUTH, "..... |
000002e0  a4 65 78 28 22 45 22 29  20 53 24 3d 53 24 2b 22  |.ex("E") S$=S$+"|
000002f0  45 41 53 54 2c 20 22 0d  00 be 1d e7 20 a4 65 78  |EAST, "..... .ex|
00000300  28 22 57 22 29 20 53 24  3d 53 24 2b 22 57 45 53  |("W") S$=S$+"WES|
00000310  54 2c 20 22 0d 00 c8 2b  e7 20 a9 53 24 3d 37 20  |T, "...+. .S$=7 |
00000320  e1 20 8b 20 53 24 3d c0  53 24 2c a9 53 24 2d 32  |. . S$=.S$,.S$-2|
00000330  29 3a f2 66 6f 72 6d 28  31 2c 53 24 29 3a e1 0d  |):.form(1,S$):..|
00000340  00 d2 19 dd f2 66 6f 72  6d 28 43 4c 2c 53 54 24  |.....form(CL,ST$|
00000350  29 3a 43 4c 3d 37 3a f5  0d 00 dc 27 e7 c0 53 54  |):CL=7:....'..ST|
00000360  24 2c 31 29 3d 22 20 22  20 53 54 24 3d c2 53 54  |$,1)=" " ST$=.ST|
00000370  24 2c a9 53 54 24 2d 31  29 3a e5 8d 64 5c 40 0d  |$,.ST$-1):..d\@.|
00000380  00 e6 1e e7 20 a9 28 53  54 24 29 3c 3d 33 38 20  |.... .(ST$)<=38 |
00000390  f1 22 20 22 3b 53 54 24  3a fd 31 3a e1 0d 00 f0  |." ";ST$:.1:....|
000003a0  10 45 53 24 3d c0 53 54  24 2c 33 38 29 0d 00 fa  |.ES$=.ST$,38)...|
000003b0  3e 4c 53 46 3d 30 3a e3  20 53 53 43 3d a9 45 53  |>LSF=0:. SSC=.ES|
000003c0  24 20 b8 20 31 20 88 2d  31 3a e7 20 c1 45 53 24  |$ . 1 .-1:. .ES$|
000003d0  2c 53 53 43 2c 31 29 3d  22 20 22 20 80 20 4c 53  |,SSC,1)=" " . LS|
000003e0  46 3d 30 20 4c 53 46 3d  53 53 43 0d 01 04 05 ed  |F=0 LSF=SSC.....|
000003f0  0d 01 0e 12 e7 20 4c 53  46 3d 30 20 4c 53 46 3d  |..... LSF=0 LSF=|
00000400  33 38 0d 01 18 11 45 53  24 3d c0 45 53 24 2c 4c  |38....ES$=.ES$,L|
00000410  53 46 29 0d 01 22 17 53  54 24 3d c2 53 54 24 2c  |SF)..".ST$=.ST$,|
00000420  a9 53 54 24 2d a9 45 53  24 29 0d 01 2c 0e f1 22  |.ST$-.ES$)..,.."|
00000430  20 22 3b 3a f1 45 53 24  0d 01 36 06 fd 30 0d 01  | ";:.ES$..6..0..|
00000440  40 5c dd f2 69 6e 69 74  3a 6f 63 3d 30 3a 5a 25  |@\..init:oc=0:Z%|
00000450  3d 30 3a 64 65 61 64 3d  a3 3a e3 52 25 3d 31 20  |=0:dead=.:.R%=1 |
00000460  b8 20 4f 42 4a 3a 3f 28  6f 62 63 2b 52 25 2d 31  |. OBJ:?(obc+R%-1|
00000470  29 3d 3f 28 6f 62 6c 2b  52 25 2d 31 29 3a e7 3f  |)=?(obl+R%-1):.?|
00000480  28 6f 62 6c 2b 52 25 2d  31 29 3d 4d 58 2a 4d 59  |(obl+R%-1)=MX*MY|
00000490  2b 31 20 6f 63 3d 6f 63  2b 31 0d 01 4a 2d e7 4f  |+1 oc=oc+1..J-.O|
000004a0  42 44 24 28 52 25 29 3d  22 3c 75 6e 64 65 66 69  |BD$(R%)="<undefi|
000004b0  6e 65 64 3e 22 20 3f 28  6f 62 6c 2b 52 25 2d 31  |ned>" ?(obl+R%-1|
000004c0  29 3d 4d 58 2a 4d 59 0d  01 54 0f ed 3a 52 25 3d  |)=MX*MY..T..:R%=|
000004d0  73 6c 6f 63 3a e1 0d 01  5e 0a dd f2 6c 6f 61 64  |sloc:...^...load|
000004e0  0d 01 68 12 46 24 3d 22  47 2e 48 4f 55 53 44 41  |..h.F$="G.HOUSDA|
000004f0  54 22 0d 01 72 13 ef 32  33 3b 38 32 30 32 3b 30  |T"..r..23;8202;0|
00000500  3b 30 3b 30 3b 0d 01 7c  b8 58 3d 8e 28 46 24 29  |;0;0;..|.X=.(F$)|
00000510  3a e8 23 58 2c 4d 58 2c  4d 59 2c 4d 4d 2c 4f 42  |:.#X,MX,MY,MM,OB|
00000520  4a 2c 50 31 3a de 50 31  24 28 50 31 29 2c 4d 45  |J,P1:.P1$(P1),ME|
00000530  53 24 28 4d 4d 29 2c 4f  42 4a 24 28 4f 42 4a 29  |S$(MM),OBJ$(OBJ)|
00000540  2c 4f 42 44 24 28 4f 42  4a 29 2c 6f 62 63 20 4f  |,OBD$(OBJ),obc O|
00000550  42 4a 2c 6f 62 6c 20 4f  42 4a 2c 44 45 53 24 28  |BJ,obl OBJ,DES$(|
00000560  4d 58 2c 4d 59 29 2c 45  58 49 24 28 4d 58 2c 4d  |MX,MY),EXI$(MX,M|
00000570  59 29 3a e3 20 5a 25 3d  31 20 b8 20 4d 4d 3a e8  |Y):. Z%=1 . MM:.|
00000580  23 58 2c 4d 45 53 24 28  5a 25 29 3a ed 3a e3 5a  |#X,MES$(Z%):.:.Z|
00000590  25 3d 31 20 b8 20 50 31  3a e8 23 58 2c 50 31 24  |%=1 . P1:.#X,P1$|
000005a0  28 5a 25 29 3a ed 3a e3  5a 25 3d 31 20 b8 20 4d  |(Z%):.:.Z%=1 . M|
000005b0  58 3a e3 20 52 25 3d 31  20 b8 20 4d 59 0d 01 86  |X:. R%=1 . MY...|
000005c0  82 e8 23 58 2c 44 45 53  24 28 5a 25 2c 52 25 29  |..#X,DES$(Z%,R%)|
000005d0  2c 45 58 49 24 28 5a 25  2c 52 25 29 3a ed 2c 3a  |,EXI$(Z%,R%):.,:|
000005e0  e3 5a 25 3d 31 20 b8 20  4f 42 4a 3a e8 23 58 2c  |.Z%=1 . OBJ:.#X,|
000005f0  4f 42 4a 24 28 5a 25 29  2c 4f 42 44 24 28 5a 25  |OBJ$(Z%),OBD$(Z%|
00000600  29 2c 3f 28 6f 62 6c 2d  31 2b 5a 25 29 3a ed 3a  |),?(obl-1+Z%):.:|
00000610  e3 5a 25 3d 26 38 38 30  20 b8 20 26 42 31 34 3a  |.Z%=&880 . &B14:|
00000620  3f 5a 25 3d 9a 23 58 3a  ed 3a e8 23 58 2c 73 6c  |?Z%=.#X:.:.#X,sl|
00000630  6f 63 2c 73 74 72 65 3a  d9 23 58 3a db 3a e1 0d  |oc,stre:.#X:.:..|
00000640  01 90 3b dd f2 61 75 74  6f 3a e3 57 25 3d 31 b8  |..;..auto:.W%=1.|
00000650  33 30 3a 56 25 3d 26 39  44 45 2b 28 57 25 2a 31  |30:V%=&9DE+(W%*1|
00000660  30 29 3a e7 52 25 3d 3f  56 25 20 84 20 3f 56 25  |0):.R%=?V% . ?V%|
00000670  3d 32 35 35 20 8b 20 ed  3a e1 0d 01 9a 1f e7 a4  |=255 . .:.......|
00000680  63 61 72 72 28 56 25 3f  31 29 20 84 20 56 25 3f  |carr(V%?1) . V%?|
00000690  31 3d 30 20 8b 20 ed 3a  e1 0d 01 a4 1f e7 a4 70  |1=0 . .:.......p|
000006a0  72 65 73 28 56 25 3f 32  29 20 84 20 56 25 3f 32  |res(V%?2) . V%?2|
000006b0  3d 30 20 8b 20 ed 3a e1  0d 01 ae 23 e7 20 ac 28  |=0 . .:....#. .(|
000006c0  a4 70 72 65 73 28 56 25  3f 33 29 29 20 84 20 56  |.pres(V%?3)) . V|
000006d0  25 3f 33 3d 30 20 8b 20  ed 3a e1 0d 01 b8 19 e7  |%?3=0 . .:......|
000006e0  20 56 25 3f 34 3c 3e 30  20 f2 6d 65 73 73 28 56  | V%?4<>0 .mess(V|
000006f0  25 3f 34 29 0d 01 c2 20  e7 20 56 25 3f 35 3c 3e  |%?4)... . V%?5<>|
00000700  30 20 6f 62 63 3f 28 56  25 3f 35 2d 31 29 3d 4d  |0 obc?(V%?5-1)=M|
00000710  58 2a 4d 59 0d 01 cc 22  e7 20 56 25 3f 36 3c 3e  |X*MY...". V%?6<>|
00000720  30 20 6f 62 63 3f 28 56  25 3f 36 2d 31 29 3d 4d  |0 obc?(V%?6-1)=M|
00000730  58 2a 4d 59 2b 31 0d 01  d6 1d e7 20 56 25 3f 37  |X*MY+1..... V%?7|
00000740  3c 3e 30 20 6f 62 63 3f  28 56 25 3f 37 2d 31 29  |<>0 obc?(V%?7-1)|
00000750  3d 52 25 0d 01 e0 13 e7  20 56 25 3f 38 3d 31 20  |=R%..... V%?8=1 |
00000760  64 65 61 64 3d b9 0d 01  ea 28 e7 20 56 25 3f 39  |dead=....(. V%?9|
00000770  3c 3e 32 35 35 20 80 20  56 25 3f 39 3c 3e 52 25  |<>255 . V%?9<>R%|
00000780  20 52 25 3d 56 25 3f 39  3a f2 6c 6f 6f 6b 0d 01  | R%=V%?9:.look..|
00000790  f4 09 f2 63 6f 62 63 0d  01 fe 0d 57 25 3d 33 30  |...cobc....W%=30|
000007a0  3a ed 3a e1 0d 02 08 0b  dd f2 65 6e 74 65 72 0d  |:.:.......enter.|
000007b0  02 12 37 e8 86 27 22 20  57 68 61 74 20 6e 6f 77  |..7..'" What now|
000007c0  3f 22 46 24 3a e7 46 24  3d 22 22 e5 8d 54 52 42  |?"F$:.F$=""..TRB|
000007d0  20 8b 20 e7 20 46 24 3d  22 4e 22 20 46 24 3d 22  | . . F$="N" F$="|
000007e0  4e 4f 52 54 48 22 0d 02  1c 2a e7 46 24 3d 22 53  |NORTH"...*.F$="S|
000007f0  22 20 46 24 3d 22 53 4f  55 54 48 22 20 8b 20 e7  |" F$="SOUTH" . .|
00000800  46 24 3d 22 45 22 20 46  24 3d 22 45 41 53 54 22  |F$="E" F$="EAST"|
00000810  0d 02 26 15 e7 46 24 3d  22 57 22 20 46 24 3d 22  |..&..F$="W" F$="|
00000820  57 45 53 54 22 0d 02 30  05 e1 0d 02 3a 49 dd a4  |WEST"..0....:I..|
00000830  63 61 72 72 28 55 25 29  3a 55 25 3d 55 25 2d 31  |carr(U%):U%=U%-1|
00000840  3a e7 20 55 25 3c 30 20  84 20 55 25 3e 28 4f 42  |:. U%<0 . U%>(OB|
00000850  4a 2d 31 29 20 3d 30 20  8b 20 e7 20 6f 62 63 3f  |J-1) =0 . . obc?|
00000860  55 25 3d 4d 58 2a 4d 59  2b 31 20 3d 2d 31 20 8b  |U%=MX*MY+1 =-1 .|
00000870  20 3d 30 0d 02 44 59 dd  a4 70 72 65 73 28 55 25  | =0..DY..pres(U%|
00000880  29 3a 55 25 3d 55 25 2d  31 3a e7 20 55 25 3c 30  |):U%=U%-1:. U%<0|
00000890  20 84 20 55 25 2b 31 3e  4f 42 4a 20 3d 30 20 8b  | . U%+1>OBJ =0 .|
000008a0  20 e7 20 6f 62 63 3f 55  25 3d 4d 58 2a 4d 59 2b  | . obc?U%=MX*MY+|
000008b0  31 20 3d 2d 31 20 8b 20  e7 20 6f 62 63 3f 55 25  |1 =-1 . . obc?U%|
000008c0  3d 52 25 20 3d 2d 31 20  8b 20 3d 30 0d 02 4e 67  |=R% =-1 . =0..Ng|
000008d0  dd f2 69 6e 70 75 74 3a  e3 57 25 3d 31 b8 50 31  |..input:.W%=1.P1|
000008e0  3a 56 25 3d 26 38 37 34  2b 28 57 25 2a 31 32 29  |:V%=&874+(W%*12)|
000008f0  3a e7 28 a4 70 6c 69 6e  65 28 46 24 2c 50 31 24  |:.(.pline(F$,P1$|
00000900  28 57 25 29 29 3d 30 20  84 20 50 31 24 28 57 25  |(W%))=0 . P1$(W%|
00000910  29 3d 22 22 29 20 ed 3a  e1 20 8b 20 e7 52 25 3d  |)="") .:. . .R%=|
00000920  3f 56 25 20 84 20 3f 56  25 3d 32 35 35 20 8b 20  |?V% . ?V%=255 . |
00000930  ed 3a e1 0d 02 58 1f e7  a4 63 61 72 72 28 56 25  |.:...X...carr(V%|
00000940  3f 31 29 20 84 20 56 25  3f 31 3d 30 20 8b 20 ed  |?1) . V%?1=0 . .|
00000950  3a e1 0d 02 62 1f e7 a4  63 61 72 72 28 56 25 3f  |:...b...carr(V%?|
00000960  32 29 20 84 20 56 25 3f  32 3d 30 20 8b 20 ed 3a  |2) . V%?2=0 . .:|
00000970  e1 0d 02 6c 1f e7 a4 70  72 65 73 28 56 25 3f 33  |...l...pres(V%?3|
00000980  29 20 84 20 56 25 3f 33  3d 30 20 8b 20 ed 3a e1  |) . V%?3=0 . .:.|
00000990  0d 02 76 21 e7 20 ac a4  70 72 65 73 28 56 25 3f  |..v!. ..pres(V%?|
000009a0  34 29 20 84 20 56 25 3f  34 3d 30 20 8b 20 ed 3a  |4) . V%?4=0 . .:|
000009b0  e1 0d 02 80 17 e7 56 25  3f 35 3e 30 20 f2 6d 65  |......V%?5>0 .me|
000009c0  73 73 28 56 25 3f 35 29  0d 02 8a 1e e7 56 25 3f  |ss(V%?5).....V%?|
000009d0  36 3e 30 20 6f 62 63 3f  28 56 25 3f 36 2d 31 29  |6>0 obc?(V%?6-1)|
000009e0  3d 4d 58 2a 4d 59 0d 02  94 1e e7 56 25 3f 37 3e  |=MX*MY.....V%?7>|
000009f0  30 20 6f 62 63 3f 28 56  25 3f 37 2d 31 29 3d 4d  |0 obc?(V%?7-1)=M|
00000a00  58 2a 4d 59 0d 02 9e 20  e7 56 25 3f 38 3e 30 20  |X*MY... .V%?8>0 |
00000a10  6f 62 63 3f 28 56 25 3f  38 2d 31 29 3d 4d 58 2a  |obc?(V%?8-1)=MX*|
00000a20  4d 59 2b 31 0d 02 a8 1b  e7 56 25 3f 39 3e 30 20  |MY+1.....V%?9>0 |
00000a30  6f 62 63 3f 28 56 25 3f  39 2d 31 29 3d 52 25 0d  |obc?(V%?9-1)=R%.|
00000a40  02 b2 13 e7 56 25 3f 31  30 3d 31 20 64 65 61 64  |....V%?10=1 dead|
00000a50  3d 31 0d 02 bc 1d e7 56  25 3f 31 31 3c 32 35 35  |=1.....V%?11<255|
00000a60  20 52 25 3d 56 25 3f 31  31 3a f2 6c 6f 6f 6b 0d  | R%=V%?11:.look.|
00000a70  02 c6 09 f2 63 6f 62 63  0d 02 d0 12 5a 25 3d 31  |....cobc....Z%=1|
00000a80  3a 57 25 3d 50 31 3a ed  3a e1 0d 02 da 3f dd a4  |:W%=P1:.:....?..|
00000a90  70 6c 69 6e 65 28 56 24  2c 57 24 29 3a 55 25 3d  |pline(V$,W$):U%=|
00000aa0  30 3a e3 20 54 25 3d 31  20 b8 20 a9 57 24 3a e7  |0:. T%=1 . .W$:.|
00000ab0  c1 57 24 2c 54 25 2c 31  29 3d 22 20 22 20 55 25  |.W$,T%,1)=" " U%|
00000ac0  3d 55 25 2b 31 3a ed 8b  ed 0d 02 e4 1e e7 55 25  |=U%+1:........U%|
00000ad0  3d 30 20 55 25 3d 32 3a  e3 54 25 3d 32 20 b8 20  |=0 U%=2:.T%=2 . |
00000ae0  32 3a e5 8d 54 42 43 0d  02 ee 42 e3 20 54 25 3d  |2:..TBC...B. T%=|
00000af0  31 20 b8 20 55 25 3a 42  5a 25 3d 30 3a e3 49 41  |1 . U%:BZ%=0:.IA|
00000b00  25 3d 31 20 b8 20 a9 57  24 3a e7 42 5a 25 3d 30  |%=1 . .W$:.BZ%=0|
00000b10  20 80 20 c1 57 24 2c 49  41 25 2c 31 29 3d 22 20  | . .W$,IA%,1)=" |
00000b20  22 20 42 5a 25 3d 49 41  25 0d 02 f8 41 ed 3a 42  |" BZ%=IA%...A.:B|
00000b30  5a 24 3d c0 57 24 2c 42  5a 25 2d 31 29 3a 57 24  |Z$=.W$,BZ%-1):W$|
00000b40  3d c2 57 24 2c a9 57 24  2d a9 42 5a 24 2d 31 29  |=.W$,.W$-.BZ$-1)|
00000b50  3a e7 20 a7 56 24 2c 42  5a 24 29 3c 31 20 8c 20  |:. .V$,BZ$)<1 . |
00000b60  54 25 3d 55 25 3a ed 3a  3d 30 0d 03 02 1a ed 3a  |T%=U%:.:=0.....:|
00000b70  e7 20 a7 56 24 2c 57 24  29 3c 31 20 3d 30 20 8b  |. .V$,W$)<1 =0 .|
00000b80  20 3d 2d 31 0d 03 0c 09  ed 3a 3d 2d 31 0d 03 16  | =-1.....:=-1...|
00000b90  40 dd f2 6d 6f 76 65 3a  e7 20 a4 70 6c 69 6e 65  |@..move:. .pline|
00000ba0  28 46 24 2c 22 4e 4f 52  54 48 22 29 20 80 20 a4  |(F$,"NORTH") . .|
00000bb0  65 78 28 22 4e 22 29 20  5a 25 3d 31 3a 52 25 3d  |ex("N") Z%=1:R%=|
00000bc0  52 25 2b 4d 58 3a f2 6c  6f 6f 6b 3a e1 0d 03 20  |R%+MX:.look:... |
00000bd0  39 e7 20 a4 70 6c 69 6e  65 28 46 24 2c 22 53 4f  |9. .pline(F$,"SO|
00000be0  55 54 48 22 29 20 80 20  a4 65 78 28 22 53 22 29  |UTH") . .ex("S")|
00000bf0  20 5a 25 3d 31 3a 52 25  3d 52 25 2d 4d 58 3a f2  | Z%=1:R%=R%-MX:.|
00000c00  6c 6f 6f 6b 3a e1 0d 03  2a 37 e7 20 a4 70 6c 69  |look:...*7. .pli|
00000c10  6e 65 28 46 24 2c 22 45  41 53 54 22 29 20 80 20  |ne(F$,"EAST") . |
00000c20  a4 65 78 28 22 45 22 29  20 52 25 3d 52 25 2b 31  |.ex("E") R%=R%+1|
00000c30  3a 5a 25 3d 31 3a f2 6c  6f 6f 6b 3a e1 0d 03 34  |:Z%=1:.look:...4|
00000c40  37 e7 20 a4 70 6c 69 6e  65 28 46 24 2c 22 57 45  |7. .pline(F$,"WE|
00000c50  53 54 22 29 20 80 20 a4  65 78 28 22 57 22 29 20  |ST") . .ex("W") |
00000c60  5a 25 3d 31 3a 52 25 3d  52 25 2d 31 3a f2 6c 6f  |Z%=1:R%=R%-1:.lo|
00000c70  6f 6b 3a e1 0d 03 3e 05  e1 0d 03 48 38 dd a4 65  |ok:...>....H8..e|
00000c80  78 28 42 5a 24 29 3a e7  20 a7 45 58 49 24 28 31  |x(BZ$):. .EXI$(1|
00000c90  2b 52 25 20 83 4d 58 2c  31 2b 52 25 20 81 4d 58  |+R% .MX,1+R% .MX|
00000ca0  29 2c 42 5a 24 29 20 8c  20 3d 2d 31 20 8b 20 3d  |),BZ$) . =-1 . =|
00000cb0  30 0d 03 52 2c dd f2 67  64 65 3a e7 20 a4 70 6c  |0..R,..gde:. .pl|
00000cc0  69 6e 65 28 46 24 2c 22  51 55 49 54 22 29 20 5a  |ine(F$,"QUIT") Z|
00000cd0  25 3d 31 3a 64 65 61 64  3d 2d 31 3a e1 0d 03 5c  |%=1:dead=-1:...\|
00000ce0  1d e7 20 a4 70 6c 69 6e  65 28 46 24 2c 22 49 4e  |.. .pline(F$,"IN|
00000cf0  56 22 29 20 f2 69 6e 76  3a e1 0d 03 66 23 e7 a4  |V") .inv:...f#..|
00000d00  70 6c 69 6e 65 28 46 24  2c 22 4c 4f 4f 4b 22 29  |pline(F$,"LOOK")|
00000d10  20 f2 6c 6f 6f 6b 3a 5a  25 3d 31 3a e1 0d 03 70  | .look:Z%=1:...p|
00000d20  30 e7 a4 70 6c 69 6e 65  28 46 24 2c 22 47 45 54  |0..pline(F$,"GET|
00000d30  22 29 20 84 20 a4 70 6c  69 6e 65 28 46 24 2c 22  |") . .pline(F$,"|
00000d40  54 41 4b 45 22 29 20 f2  67 65 74 3a e1 0d 03 7a  |TAKE") .get:...z|
00000d50  1e e7 a4 70 6c 69 6e 65  28 46 24 2c 22 44 52 4f  |...pline(F$,"DRO|
00000d60  50 22 29 20 f2 64 72 6f  70 3a e1 0d 03 84 28 e7  |P") .drop:....(.|
00000d70  a4 70 6c 69 6e 65 28 46  24 2c 22 53 41 56 45 20  |.pline(F$,"SAVE |
00000d80  47 41 4d 45 22 29 20 f2  73 61 76 65 3a 5a 25 3d  |GAME") .save:Z%=|
00000d90  31 3a e1 0d 03 8e 26 e7  a4 70 6c 69 6e 65 28 46  |1:....&..pline(F|
00000da0  24 2c 22 4c 4f 41 44 20  47 41 4d 45 22 29 20 f2  |$,"LOAD GAME") .|
00000db0  6c 64 3a 5a 25 3d 31 3a  e1 0d 03 98 05 e1 0d 03  |ld:Z%=1:........|
00000dc0  a2 15 dd f2 67 65 74 3a  e7 20 73 74 72 65 3c 6f  |....get:. stre<o|
00000dd0  63 20 e1 0d 03 ac 2e e3  20 49 41 25 3d 31 20 b8  |c ...... IA%=1 .|
00000de0  20 4f 42 4a 3a e7 20 97  28 c0 4f 42 4a 24 28 49  | OBJ:. .(.OBJ$(I|
00000df0  41 25 29 2c 31 29 29 20  83 32 3c 3e 30 20 ed 3a  |A%),1)) .2<>0 .:|
00000e00  e1 0d 03 b6 16 e7 20 a4  70 72 65 73 28 49 41 25  |...... .pres(IA%|
00000e10  29 20 8b 20 ed 3a e1 0d  03 c0 14 e7 20 a4 63 61  |) . .:...... .ca|
00000e20  72 72 28 49 41 25 29 20  ed 3a e1 0d 03 ca 2f e7  |rr(IA%) .:..../.|
00000e30  20 ac 20 a4 70 6c 69 6e  65 28 46 24 2c c2 4f 42  | . .pline(F$,.OB|
00000e40  4a 24 28 49 41 25 29 2c  a9 4f 42 4a 24 28 49 41  |J$(IA%),.OBJ$(IA|
00000e50  25 29 2d 31 29 29 20 ed  3a e1 0d 03 d4 42 f2 66  |%)-1)) .:....B.f|
00000e60  6f 72 6d 28 36 2c 22 4f  6b 61 79 2e 22 29 3a 3f  |orm(6,"Okay."):?|
00000e70  28 6f 62 63 2d 31 2b 49  41 25 29 3d 4d 58 2a 4d  |(obc-1+IA%)=MX*M|
00000e80  59 2b 31 3a 5a 25 3d 31  3a 49 41 25 3d 4f 42 4a  |Y+1:Z%=1:IA%=OBJ|
00000e90  3a ed 3a 6f 63 3d 6f 63  2b 31 3a e1 0d 03 de 41  |:.:oc=oc+1:....A|
00000ea0  dd f2 72 65 70 65 61 74  3a f1 27 22 20 20 20 20  |..repeat:.'"    |
00000eb0  20 50 72 65 73 73 20 3c  53 50 41 43 45 3e 20 74  | Press <SPACE> t|
00000ec0  6f 20 70 6c 61 79 20 61  67 61 69 6e 2e 2e 2e 22  |o play again..."|
00000ed0  3a f5 20 fd 20 a5 3d 33  32 3a db 3a e1 0d 03 e8  |:. . .=32:.:....|
00000ee0  0a dd f2 64 72 6f 70 0d  03 f2 4c e7 20 6f 63 3d  |...drop...L. oc=|
00000ef0  30 20 e1 20 8b 20 e3 20  49 41 25 3d 31 20 b8 20  |0 . . . IA%=1 . |
00000f00  4f 42 4a 3a e7 20 97 28  c0 4f 42 4a 24 28 49 41  |OBJ:. .(.OBJ$(IA|
00000f10  25 29 2c 31 29 29 3c 3e  30 20 80 20 97 28 c0 4f  |%),1))<>0 . .(.O|
00000f20  42 4a 24 28 49 41 25 29  2c 31 29 29 3c 3e 33 20  |BJ$(IA%),1))<>3 |
00000f30  ed 3a e1 0d 03 fc 14 e7  ac a4 63 61 72 72 28 49  |.:........carr(I|
00000f40  41 25 29 20 ed 3a e1 0d  04 06 31 e7 20 ac 20 a4  |A%) .:....1. . .|
00000f50  70 6c 69 6e 65 28 46 24  2c c2 4f 42 4a 24 28 49  |pline(F$,.OBJ$(I|
00000f60  41 25 29 2c a9 28 4f 42  4a 24 28 49 41 25 29 29  |A%),.(OBJ$(IA%))|
00000f70  2d 31 29 29 20 ed 3a e1  0d 04 10 3d f2 66 6f 72  |-1)) .:....=.for|
00000f80  6d 28 36 2c 22 4f 6b 61  79 2e 22 29 3a 3f 28 6f  |m(6,"Okay."):?(o|
00000f90  62 63 2d 31 2b 49 41 25  29 3d 52 25 3a 5a 25 3d  |bc-1+IA%)=R%:Z%=|
00000fa0  31 3a 49 41 25 3d 4f 42  4a 3a 6f 63 3d 6f 63 2d  |1:IA%=OBJ:oc=oc-|
00000fb0  31 3a ed 3a e1 0d 04 1a  38 dd f2 69 6e 76 3a 4d  |1:.:....8..inv:M|
00000fc0  25 3d 30 3a e3 49 41 25  3d 31 20 b8 20 4f 42 4a  |%=0:.IA%=1 . OBJ|
00000fd0  3a e7 6f 62 63 3f 28 49  41 25 2d 31 29 3d 4d 58  |:.obc?(IA%-1)=MX|
00000fe0  2a 4d 59 2b 31 20 4d 25  3d 4d 25 2b 31 0d 04 24  |*MY+1 M%=M%+1..$|
00000ff0  46 ed 3a e7 20 4d 25 3d  30 20 5a 25 3d 31 3a f2  |F.:. M%=0 Z%=1:.|
00001000  66 6f 72 6d 28 35 2c 22  59 6f 75 20 61 72 65 20  |form(5,"You are |
00001010  63 61 72 72 79 69 6e 67  20 6e 6f 74 68 69 6e 67  |carrying nothing|
00001020  20 61 74 20 74 68 65 20  6d 6f 6d 65 6e 74 2e 22  | at the moment."|
00001030  29 3a e1 0d 04 2e 57 f2  66 6f 72 6d 32 28 30 2c  |):....W.form2(0,|
00001040  35 2c 22 59 6f 75 20 68  61 76 65 22 29 3a e3 49  |5,"You have"):.I|
00001050  41 25 3d 31 20 b8 20 4f  42 4a 3a e7 6f 62 63 3f  |A%=1 . OBJ:.obc?|
00001060  28 49 41 25 2d 31 29 3d  4d 58 2a 4d 59 2b 31 20  |(IA%-1)=MX*MY+1 |
00001070  f2 66 6f 72 6d 32 28 4d  25 2c 35 2c 4f 42 44 24  |.form2(M%,5,OBD$|
00001080  28 49 41 25 29 2b 22 2c  22 29 0d 04 38 05 ed 0d  |(IA%)+",")..8...|
00001090  04 42 12 f1 bd 38 3b 22  2e 22 3a 5a 25 3d 31 3a  |.B...8;".":Z%=1:|
000010a0  e1 0d 04 4c 56 dd f2 73  61 76 65 3a 58 3d ae 28  |...LV..save:X=.(|
000010b0  22 41 44 53 41 56 45 22  29 3a f1 23 58 2c 52 25  |"ADSAVE"):.#X,R%|
000010c0  2c 6f 63 3a e3 49 41 25  3d 30 20 b8 20 4f 42 4a  |,oc:.IA%=0 . OBJ|
000010d0  2d 31 3a f1 23 58 2c 6f  62 63 3f 49 41 25 3a ed  |-1:.#X,obc?IA%:.|
000010e0  3a d9 23 58 3a f2 66 6f  72 6d 28 36 2c 22 4f 6b  |:.#X:.form(6,"Ok|
000010f0  61 79 2e 22 29 3a e1 0d  04 56 49 dd f2 6c 64 3a  |ay."):...VI..ld:|
00001100  58 3d 8e 28 22 41 44 53  41 56 45 22 29 3a e8 23  |X=.("ADSAVE"):.#|
00001110  58 2c 52 25 2c 6f 63 3a  e3 49 41 25 3d 30 20 b8  |X,R%,oc:.IA%=0 .|
00001120  20 4f 42 4a 2d 31 3a e8  23 58 2c 6f 62 63 3f 49  | OBJ-1:.#X,obc?I|
00001130  41 25 3a ed 3a d9 23 58  3a f2 6c 6f 6f 6b 3a e1  |A%:.:.#X:.look:.|
00001140  0d 04 60 37 dd f2 63 6f  62 63 3a 6f 63 3d 30 3a  |..`7..cobc:oc=0:|
00001150  e3 49 41 25 3d 30 20 b8  20 4f 42 4a 2d 31 3a e7  |.IA%=0 . OBJ-1:.|
00001160  6f 62 63 3f 49 41 25 3d  4d 58 2a 4d 59 2b 31 20  |obc?IA%=MX*MY+1 |
00001170  6f 63 3d 6f 63 2b 31 0d  04 6a 07 ed 3a e1 0d 04  |oc=oc+1..j..:...|
00001180  74 27 dd f2 66 6f 72 6d  32 28 4c 25 2c 43 4c 2c  |t'..form2(L%,CL,|
00001190  53 54 24 29 3a 43 4c 3d  37 3a e7 20 4c 25 3e 30  |ST$):CL=7:. L%>0|
000011a0  20 f1 bd 31 31 0d 04 7e  05 f5 0d 04 88 27 e7 c0  | ..11..~.....'..|
000011b0  53 54 24 2c 31 29 3d 22  20 22 20 53 54 24 3d c2  |ST$,1)=" " ST$=.|
000011c0  53 54 24 2c a9 53 54 24  2d 31 29 3a e5 8d 74 48  |ST$,.ST$-1):..tH|
000011d0  44 0d 04 92 56 e7 20 a9  28 53 54 24 29 3c 3d 33  |D...V. .(ST$)<=3|
000011e0  38 2d 4c 25 20 f1 8a 4c  25 2c bc 29 3b 22 20 22  |8-L% ..L%,.);" "|
000011f0  3b 53 54 24 3b 3a 4d 25  3d 2d b1 2a 28 b1 3c 33  |;ST$;:M%=-.*(.<3|
00001200  37 29 3a e7 20 4d 25 3d  30 20 f1 3a fd 31 3a e1  |7):. M%=0 .:.1:.|
00001210  20 8b 20 e7 20 a9 28 53  54 24 29 3c 3d 33 38 2d  | . . .(ST$)<=38-|
00001220  4c 25 20 fd 31 3a e1 0d  04 9c 13 45 53 24 3d c0  |L% .1:.....ES$=.|
00001230  53 54 24 2c 33 38 2d 4c  25 29 0d 04 a6 3e 4c 53  |ST$,38-L%)...>LS|
00001240  46 3d 30 3a e3 20 53 53  43 3d a9 45 53 24 20 b8  |F=0:. SSC=.ES$ .|
00001250  20 31 20 88 2d 31 3a e7  20 c1 45 53 24 2c 53 53  | 1 .-1:. .ES$,SS|
00001260  43 2c 31 29 3d 22 20 22  20 80 20 4c 53 46 3d 30  |C,1)=" " . LSF=0|
00001270  20 4c 53 46 3d 53 53 43  0d 04 b0 05 ed 0d 04 ba  | LSF=SSC........|
00001280  30 e7 20 4c 53 46 3d 30  20 80 20 4c 25 3d 30 20  |0. LSF=0 . L%=0 |
00001290  4c 53 46 3d 33 38 2d 4c  25 20 8b 20 e7 20 4c 53  |LSF=38-L% . . LS|
000012a0  46 3d 30 20 f1 3a 4c 25  3d 30 3a fd 30 0d 04 c4  |F=0 .:L%=0:.0...|
000012b0  11 45 53 24 3d c0 45 53  24 2c 4c 53 46 29 0d 04  |.ES$=.ES$,LSF)..|
000012c0  ce 17 53 54 24 3d c2 53  54 24 2c a9 53 54 24 2d  |..ST$=.ST$,.ST$-|
000012d0  a9 45 53 24 29 0d 04 d8  13 f1 8a 4c 25 2c bc 29  |.ES$)......L%,.)|
000012e0  3b 22 20 22 3b 45 53 24  0d 04 e2 0d 4c 25 3d 30  |;" ";ES$....L%=0|
000012f0  3a 4d 25 3d 30 0d 04 ec  06 fd 30 0d ff           |:M%=0.....0..|
000012fd
G/HOUSE4.m0
G/HOUSE4.m1
G/HOUSE4.m2
G/HOUSE4.m4
G/HOUSE4.m5