Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_23.ADF » G/TENNIS
G/TENNIS
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_23.ADF |
Filename: | G/TENNIS |
Read OK: | ✔ |
File size: | 0B71 bytes |
Load address: | FFFF1D00 |
Exec address: | FFFF8023 |
Duplicates
There is 1 duplicate copy of this file in the archive:
- AEW website » eug » eug_5_25_discs_Eug-23_D-EUG23.dsd » G.TENNIS
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_23.ADF » G/TENNIS
File contents
10REM TENNIS 20REM (c) Ross Little 30REM 20th Dec 1995 40 50CLEAR 60MODE 2 70PROCinit 80MODE 4 90REPEAT 100 PROCvars 110 REPEAT 120 PROCserve 130 REPEAT 140 PROCmove 150 PROCball 160 UNTIL out 170 PROCscore 180 UNTIL game 190 *FX15,1 200 REPEAT UNTIL GET=13 210 UNTIL FALSE 220 230DEF PROCinit 240ON ERROR PROCerror 250VDU 23,1,0;0;0;0; 260VDU 23,128,0,16,56,124,56,16,0,0 270VDU 23,128,24,60,126,255,255,126,60,24 280VDU 23,129,255,255,255,255,255,255,255,255 290OSCLI"FX 211,1":OSCLI"FX 212,0" 300OSCLI"FX 213,130":OSCLI"FX 214,1" 310COLOUR 130:CLS 320COLOUR 0 330PRINT TAB(7,5) "TENNIS" 340COLOUR 3 350PRINT TAB(1,12) "Beat your Electron" 360PRINT TAB(2,14) "to ten points to" 370PRINT TAB(3,16) "win this game!" 380COLOUR 0 390PRINT TAB(1,22) "< - Left Right - >" 400PRINT TAB(0,25) "RETURN - First Serve" 410REPEAT UNTIL GET=13 420ENDPROC 430 440DEF PROCvars 450VDU 23,1,0;0;0;0; 460VDU 19,1,2;0; 470CLS 480game=FALSE 490cbat=19:hbat=19 500elec= 0:hman= 0 510serv= 2 520bat$=CHR$32+CHR$129+CHR$129+CHR$129+CHR$32 530ENDPROC 540 550DEF PROCserve 560xbal=0:ybal=16 570PRINT TAB(19,0)" ";TAB(19,31)" "; 580PRINT TAB(xbal,ybal);CHR$128; 590vecx=1 600IF serv=1 vecy=1 ELSE vecy=-1 610ENDPROC 620 630DEF PROCmove 640out=FALSE 650IF INKEY(-103) THEN hbat=hbat-1 660IF INKEY(-104) THEN hbat=hbat+1 670IF xbal+vecx<cbat THEN cbat=cbat-1 680IF xbal+vecx>cbat+3 THEN cbat=cbat+1 690IF hbat<0 THEN hbat=0 700IF hbat>36 THEN hbat=36 710IF cbat<0 THEN cbat=0 720IF cbat>36 THEN cbat=36 730PRINT TAB(cbat,3) bat$ 740PRINT TAB(hbat,27) bat$ 750ENDPROC 760 770DEF PROCball 780IF ybal=26 PROChcheck 790IF ybal= 4 PROCecheck 800IF ybal=27 AND xbal=hbat THEN VDU7:vecx=-1:vecy=-1 810IF ybal=27 AND xbal=hbat+4 THEN VDU7:vecx=1:vecy=-1 820IF ybal>29 OR ybal<2 PROCout:ENDPROC 830IF xbal=39 THEN xvec=-1 840IF xbal= 0 THEN xvec= 1 850oldx=xbal:oldy=ybal 860xbal=xbal+vecx:ybal=ybal+vecy 870IF xbal>39 THEN xbal=39:vecx=-1:VDU 7 880IF xbal<0 THEN xbal=0 :vecx= 1:VDU 7 890PRINT TAB(xbal,ybal) CHR$128; 900PRINT TAB(oldx,oldy) CHR$32; 910ENDPROC 920 930DEF PROChcheck 940IF xbal=hbat-1 AND vecx>0 ENDPROC 950IF xbal=hbat AND vecx>0 VDU7:vecx=2:vecy=-1 960IF xbal=hbat+1 AND vecx>0 VDU7:vecy=-1 970IF xbal=hbat+1 AND vecx<0 VDU7:vecx=-2:vecy=-1 980IF xbal=hbat+2 VDU7:vecy=-1 990IF xbal=hbat+3 AND vecx>0 VDU7:vecx=2:vecy=-1 1000IF xbal=hbat+3 AND vecx<0 VDU7:vecx=-1:vecy=-1 1010IF xbal=hbat+4 AND vecx<0 VDU7:vecx=-2:vecy=-1 1020IF xbal=hbat+5 AND vecx<0 ENDPROC 1030ENDPROC 1040 1050DEF PROCecheck 1060IF xbal=cbat-1 AND vecx>0 ENDPROC 1070IF xbal=cbat AND vecx>0 VDU7:vecx=2:vecy=1 1080IF xbal=cbat+1 AND vecx>0 VDU7:vecy=1 1090IF xbal=cbat+1 AND vecx<0 VDU7:vecx=-2:vecy=1 1100IF xbal=cbat+2 VDU7:vecy=1 1110IF xbal=cbat+3 AND vecx>0 VDU7:vecx=2:vecy=1 1120IF xbal=cbat+3 AND vecx<0 VDU7:vecx=-1:vecy=1 1130IF xbal=cbat+4 AND vecx<0 VDU7:vecx=-2:vecy=1 1140IF xbal=hbat+5 AND vecx<0 ENDPROC 1150ENDPROC 1160 1170DEF PROCout 1180IF ybal>15 serv=1 ELSE serv=2 1190PRINT TAB(xbal,ybal) CHR$32; 1200out=TRUE 1210ENDPROC 1220 1230DEF PROCscore 1240VDU7 1250PRINT TAB(xbal,ybal) " "; 1260IF ybal>15 THEN elec=elec+1 1270IF ybal<15 THEN hman=hman+1 1280PRINT TAB(19,0);elec;TAB(19,31);hman; 1290IF hman=10 OR elec=10 game=TRUE 1300IF game VDU 19,1,7;0; 1310TIME=0 1320REPEAT 1330FOR delay=1 TO 75:NEXT 1340IF INKEY(-103) hbat=hbat-1 1350IF INKEY(-104) hbat=hbat+1 1360IF cbat>0 AND serv=2 THEN cbat=cbat-1 1370IF hbat>36 hbat=36 1380IF hbat<0 hbat= 0 1390PRINT TAB(cbat,3) bat$ 1400PRINT TAB(hbat,27) bat$; 1410UNTIL TIME>100 1420ENDPROC 1430 1440DEF PROCerror 1450IF ERR=17 RUN 1460VDU22,6 1470REPORT:PRINT;" at line ";ERL 1480END
� TENNIS � (c) Ross Little � 20th Dec 1995 ( 2� <� 2 F �init P� 4 Z� d �vars n � x �serve � � � �move � �ball � � out � �score � � game � *FX15,1 � � � �=13 � � � � �� �init �� � �error �� 23,1,0;0;0;0; "� 23,128,0,16,56,124,56,16,0,0 (� 23,128,24,60,126,255,255,126,60,24 ,� 23,129,255,255,255,255,255,255,255,255 "�"FX 211,1":�"FX 212,0" ,�"FX 213,130":�"FX 214,1" 6� 130:� @� 0 J� �7,5) "TENNIS" T� 3 ^!� �1,12) "Beat your Electron" h� �2,14) "to ten points to" r� �3,16) "win this game!" |� 0 �!� �1,22) "< - Left Right - >" �#� �0,25) "RETURN - First Serve" �� � �=13 �� � �� �vars �� 23,1,0;0;0;0; �� 19,1,2;0; �� � game=� �cbat=19:hbat=19 �elec= 0:hman= 0 �serv= 2 bat$=�32+�129+�129+�129+�32 � &� �serve 0xbal=0:ybal=16 :� �19,0)" ";�19,31)" "; D� �xbal,ybal);�128; N vecx=1 X� serv=1 vecy=1 � vecy=-1 b� l v� �move � out=� �� �(-103) � hbat=hbat-1 �� �(-104) � hbat=hbat+1 �"� xbal+vecx<cbat � cbat=cbat-1 �$� xbal+vecx>cbat+3 � cbat=cbat+1 �� hbat<0 � hbat=0 �� hbat>36 � hbat=36 �� cbat<0 � cbat=0 �� cbat>36 � cbat=36 �� �cbat,3) bat$ �� �hbat,27) bat$ �� � � �ball � ybal=26 �hcheck � ybal= 4 �echeck .� ybal=27 � xbal=hbat � �7:vecx=-1:vecy=-1 */� ybal=27 � xbal=hbat+4 � �7:vecx=1:vecy=-1 4� ybal>29 � ybal<2 �out:� >� xbal=39 � xvec=-1 H� xbal= 0 � xvec= 1 Roldx=xbal:oldy=ybal \!xbal=xbal+vecx:ybal=ybal+vecy f#� xbal>39 � xbal=39:vecx=-1:� 7 p#� xbal<0 � xbal=0 :vecx= 1:� 7 z� �xbal,ybal) �128; �� �oldx,oldy) �32; �� � � � �hcheck �� xbal=hbat-1 � vecx>0 � �*� xbal=hbat � vecx>0 �7:vecx=2:vecy=-1 �%� xbal=hbat+1 � vecx>0 �7:vecy=-1 �-� xbal=hbat+1 � vecx<0 �7:vecx=-2:vecy=-1 �� xbal=hbat+2 �7:vecy=-1 �,� xbal=hbat+3 � vecx>0 �7:vecx=2:vecy=-1 �-� xbal=hbat+3 � vecx<0 �7:vecx=-1:vecy=-1 �-� xbal=hbat+4 � vecx<0 �7:vecx=-2:vecy=-1 �� xbal=hbat+5 � vecx<0 � � � �echeck $� xbal=cbat-1 � vecx>0 � .)� xbal=cbat � vecx>0 �7:vecx=2:vecy=1 8$� xbal=cbat+1 � vecx>0 �7:vecy=1 B,� xbal=cbat+1 � vecx<0 �7:vecx=-2:vecy=1 L� xbal=cbat+2 �7:vecy=1 V+� xbal=cbat+3 � vecx>0 �7:vecx=2:vecy=1 `,� xbal=cbat+3 � vecx<0 �7:vecx=-1:vecy=1 j,� xbal=cbat+4 � vecx<0 �7:vecx=-2:vecy=1 t� xbal=hbat+5 � vecx<0 � ~� � � � �out �� ybal>15 serv=1 � serv=2 �� �xbal,ybal) �32; � out=� �� � �� �score ��7 �� �xbal,ybal) " "; �� ybal>15 � elec=elec+1 �� ybal<15 � hman=hman+1 � �19,0);elec;�19,31);hman; � hman=10 � elec=10 game=� � game � 19,1,7;0; �=0 (� 2� delay=1 � 75:� <� �(-103) hbat=hbat-1 F� �(-104) hbat=hbat+1 P#� cbat>0 � serv=2 � cbat=cbat-1 Z� hbat>36 hbat=36 d� hbat<0 hbat= 0 n� �cbat,3) bat$ x� �hbat,27) bat$; �� �>100 �� � �� �error �� �=17 � � �22,6 ��:�;" at line ";� �� �
00000000 0d 00 0a 11 f4 20 20 20 20 20 20 54 45 4e 4e 49 |..... TENNI| 00000010 53 0d 00 14 15 f4 20 28 63 29 20 52 6f 73 73 20 |S..... (c) Ross | 00000020 4c 69 74 74 6c 65 0d 00 1e 14 f4 20 20 32 30 74 |Little..... 20t| 00000030 68 20 44 65 63 20 31 39 39 35 0d 00 28 05 20 0d |h Dec 1995..(. .| 00000040 00 32 05 d8 0d 00 3c 07 eb 20 32 0d 00 46 09 f2 |.2....<.. 2..F..| 00000050 69 6e 69 74 0d 00 50 07 eb 20 34 0d 00 5a 05 f5 |init..P.. 4..Z..| 00000060 0d 00 64 0b 20 20 f2 76 61 72 73 0d 00 6e 07 20 |..d. .vars..n. | 00000070 20 f5 0d 00 78 0e 20 20 20 20 f2 73 65 72 76 65 | ...x. .serve| 00000080 0d 00 82 09 20 20 20 20 f5 0d 00 8c 0f 20 20 20 |.... ..... | 00000090 20 20 20 f2 6d 6f 76 65 0d 00 96 0f 20 20 20 20 | .move.... | 000000a0 20 20 f2 62 61 6c 6c 0d 00 a0 0f 20 20 20 20 20 | .ball.... | 000000b0 20 fd 20 6f 75 74 0d 00 aa 0e 20 20 20 20 f2 73 | . out.... .s| 000000c0 63 6f 72 65 0d 00 b4 0e 20 20 20 20 fd 20 67 61 |core.... . ga| 000000d0 6d 65 0d 00 be 0d 20 20 2a 46 58 31 35 2c 31 0d |me.... *FX15,1.| 000000e0 00 c8 0e 20 20 f5 20 fd 20 a5 3d 31 33 0d 00 d2 |... . . .=13...| 000000f0 09 20 20 fd 20 a3 0d 00 dc 05 20 0d 00 e6 0b dd |. . ..... .....| 00000100 20 f2 69 6e 69 74 0d 00 f0 0e ee 20 85 20 f2 65 | .init..... . .e| 00000110 72 72 6f 72 0d 00 fa 13 ef 20 32 33 2c 31 2c 30 |rror..... 23,1,0| 00000120 3b 30 3b 30 3b 30 3b 0d 01 04 22 ef 20 32 33 2c |;0;0;0;...". 23,| 00000130 31 32 38 2c 30 2c 31 36 2c 35 36 2c 31 32 34 2c |128,0,16,56,124,| 00000140 35 36 2c 31 36 2c 30 2c 30 0d 01 0e 28 ef 20 32 |56,16,0,0...(. 2| 00000150 33 2c 31 32 38 2c 32 34 2c 36 30 2c 31 32 36 2c |3,128,24,60,126,| 00000160 32 35 35 2c 32 35 35 2c 31 32 36 2c 36 30 2c 32 |255,255,126,60,2| 00000170 34 0d 01 18 2c ef 20 32 33 2c 31 32 39 2c 32 35 |4...,. 23,129,25| 00000180 35 2c 32 35 35 2c 32 35 35 2c 32 35 35 2c 32 35 |5,255,255,255,25| 00000190 35 2c 32 35 35 2c 32 35 35 2c 32 35 35 0d 01 22 |5,255,255,255.."| 000001a0 1b ff 22 46 58 20 32 31 31 2c 31 22 3a ff 22 46 |.."FX 211,1":."F| 000001b0 58 20 32 31 32 2c 30 22 0d 01 2c 1d ff 22 46 58 |X 212,0"..,.."FX| 000001c0 20 32 31 33 2c 31 33 30 22 3a ff 22 46 58 20 32 | 213,130":."FX 2| 000001d0 31 34 2c 31 22 0d 01 36 0b fb 20 31 33 30 3a db |14,1"..6.. 130:.| 000001e0 0d 01 40 07 fb 20 30 0d 01 4a 14 f1 20 8a 37 2c |..@.. 0..J.. .7,| 000001f0 35 29 20 22 54 45 4e 4e 49 53 22 0d 01 54 07 fb |5) "TENNIS"..T..| 00000200 20 33 0d 01 5e 21 f1 20 8a 31 2c 31 32 29 20 22 | 3..^!. .1,12) "| 00000210 42 65 61 74 20 79 6f 75 72 20 45 6c 65 63 74 72 |Beat your Electr| 00000220 6f 6e 22 0d 01 68 1f f1 20 8a 32 2c 31 34 29 20 |on"..h.. .2,14) | 00000230 22 74 6f 20 74 65 6e 20 70 6f 69 6e 74 73 20 74 |"to ten points t| 00000240 6f 22 0d 01 72 1d f1 20 8a 33 2c 31 36 29 20 22 |o"..r.. .3,16) "| 00000250 77 69 6e 20 74 68 69 73 20 67 61 6d 65 21 22 0d |win this game!".| 00000260 01 7c 07 fb 20 30 0d 01 86 21 f1 20 8a 31 2c 32 |.|.. 0...!. .1,2| 00000270 32 29 20 22 3c 20 2d 20 4c 65 66 74 20 52 69 67 |2) "< - Left Rig| 00000280 68 74 20 2d 20 3e 22 0d 01 90 23 f1 20 8a 30 2c |ht - >"...#. .0,| 00000290 32 35 29 20 22 52 45 54 55 52 4e 20 2d 20 46 69 |25) "RETURN - Fi| 000002a0 72 73 74 20 53 65 72 76 65 22 0d 01 9a 0c f5 20 |rst Serve"..... | 000002b0 fd 20 a5 3d 31 33 0d 01 a4 05 e1 0d 01 ae 05 20 |. .=13......... | 000002c0 0d 01 b8 0b dd 20 f2 76 61 72 73 0d 01 c2 13 ef |..... .vars.....| 000002d0 20 32 33 2c 31 2c 30 3b 30 3b 30 3b 30 3b 0d 01 | 23,1,0;0;0;0;..| 000002e0 cc 0f ef 20 31 39 2c 31 2c 32 3b 30 3b 0d 01 d6 |... 19,1,2;0;...| 000002f0 05 db 0d 01 e0 0a 67 61 6d 65 3d a3 0d 01 ea 13 |......game=.....| 00000300 63 62 61 74 3d 31 39 3a 68 62 61 74 3d 31 39 0d |cbat=19:hbat=19.| 00000310 01 f4 13 65 6c 65 63 3d 20 30 3a 68 6d 61 6e 3d |...elec= 0:hman=| 00000320 20 30 0d 01 fe 0b 73 65 72 76 3d 20 32 0d 02 08 | 0....serv= 2...| 00000330 1f 62 61 74 24 3d bd 33 32 2b bd 31 32 39 2b bd |.bat$=.32+.129+.| 00000340 31 32 39 2b bd 31 32 39 2b bd 33 32 0d 02 12 05 |129+.129+.32....| 00000350 e1 0d 02 1c 05 20 0d 02 26 0c dd 20 f2 73 65 72 |..... ..&.. .ser| 00000360 76 65 0d 02 30 12 78 62 61 6c 3d 30 3a 79 62 61 |ve..0.xbal=0:yba| 00000370 6c 3d 31 36 0d 02 3a 1b f1 20 8a 31 39 2c 30 29 |l=16..:.. .19,0)| 00000380 22 20 22 3b 8a 31 39 2c 33 31 29 22 20 22 3b 0d |" ";.19,31)" ";.| 00000390 02 44 17 f1 20 8a 78 62 61 6c 2c 79 62 61 6c 29 |.D.. .xbal,ybal)| 000003a0 3b bd 31 32 38 3b 0d 02 4e 0a 76 65 63 78 3d 31 |;.128;..N.vecx=1| 000003b0 0d 02 58 1d e7 20 73 65 72 76 3d 31 20 76 65 63 |..X.. serv=1 vec| 000003c0 79 3d 31 20 8b 20 76 65 63 79 3d 2d 31 0d 02 62 |y=1 . vecy=-1..b| 000003d0 05 e1 0d 02 6c 05 20 0d 02 76 0b dd 20 f2 6d 6f |....l. ..v.. .mo| 000003e0 76 65 0d 02 80 09 6f 75 74 3d a3 0d 02 8a 1b e7 |ve....out=......| 000003f0 20 a6 28 2d 31 30 33 29 20 8c 20 68 62 61 74 3d | .(-103) . hbat=| 00000400 68 62 61 74 2d 31 0d 02 94 1b e7 20 a6 28 2d 31 |hbat-1..... .(-1| 00000410 30 34 29 20 8c 20 68 62 61 74 3d 68 62 61 74 2b |04) . hbat=hbat+| 00000420 31 0d 02 9e 22 e7 20 78 62 61 6c 2b 76 65 63 78 |1...". xbal+vecx| 00000430 3c 63 62 61 74 20 8c 20 63 62 61 74 3d 63 62 61 |<cbat . cbat=cba| 00000440 74 2d 31 0d 02 a8 24 e7 20 78 62 61 6c 2b 76 65 |t-1...$. xbal+ve| 00000450 63 78 3e 63 62 61 74 2b 33 20 8c 20 63 62 61 74 |cx>cbat+3 . cbat| 00000460 3d 63 62 61 74 2b 31 0d 02 b2 16 e7 20 68 62 61 |=cbat+1..... hba| 00000470 74 3c 30 20 20 8c 20 68 62 61 74 3d 30 0d 02 bc |t<0 . hbat=0...| 00000480 17 e7 20 68 62 61 74 3e 33 36 20 8c 20 68 62 61 |.. hbat>36 . hba| 00000490 74 3d 33 36 0d 02 c6 16 e7 20 63 62 61 74 3c 30 |t=36..... cbat<0| 000004a0 20 20 8c 20 63 62 61 74 3d 30 0d 02 d0 17 e7 20 | . cbat=0..... | 000004b0 63 62 61 74 3e 33 36 20 8c 20 63 62 61 74 3d 33 |cbat>36 . cbat=3| 000004c0 36 0d 02 da 13 f1 20 8a 63 62 61 74 2c 33 29 20 |6..... .cbat,3) | 000004d0 62 61 74 24 0d 02 e4 14 f1 20 8a 68 62 61 74 2c |bat$..... .hbat,| 000004e0 32 37 29 20 62 61 74 24 0d 02 ee 05 e1 0d 02 f8 |27) bat$........| 000004f0 05 20 0d 03 02 0b dd 20 f2 62 61 6c 6c 0d 03 0c |. ..... .ball...| 00000500 15 e7 20 79 62 61 6c 3d 32 36 20 f2 68 63 68 65 |.. ybal=26 .hche| 00000510 63 6b 0d 03 16 15 e7 20 79 62 61 6c 3d 20 34 20 |ck..... ybal= 4 | 00000520 f2 65 63 68 65 63 6b 0d 03 20 2e e7 20 79 62 61 |.echeck.. .. yba| 00000530 6c 3d 32 37 20 80 20 78 62 61 6c 3d 68 62 61 74 |l=27 . xbal=hbat| 00000540 20 8c 20 ef 37 3a 76 65 63 78 3d 2d 31 3a 76 65 | . .7:vecx=-1:ve| 00000550 63 79 3d 2d 31 0d 03 2a 2f e7 20 79 62 61 6c 3d |cy=-1..*/. ybal=| 00000560 32 37 20 80 20 78 62 61 6c 3d 68 62 61 74 2b 34 |27 . xbal=hbat+4| 00000570 20 8c 20 ef 37 3a 76 65 63 78 3d 31 3a 76 65 63 | . .7:vecx=1:vec| 00000580 79 3d 2d 31 0d 03 34 1d e7 20 79 62 61 6c 3e 32 |y=-1..4.. ybal>2| 00000590 39 20 84 20 79 62 61 6c 3c 32 20 f2 6f 75 74 3a |9 . ybal<2 .out:| 000005a0 e1 0d 03 3e 17 e7 20 78 62 61 6c 3d 33 39 20 8c |...>.. xbal=39 .| 000005b0 20 78 76 65 63 3d 2d 31 0d 03 48 17 e7 20 78 62 | xvec=-1..H.. xb| 000005c0 61 6c 3d 20 30 20 8c 20 78 76 65 63 3d 20 31 0d |al= 0 . xvec= 1.| 000005d0 03 52 17 6f 6c 64 78 3d 78 62 61 6c 3a 6f 6c 64 |.R.oldx=xbal:old| 000005e0 79 3d 79 62 61 6c 0d 03 5c 21 78 62 61 6c 3d 78 |y=ybal..\!xbal=x| 000005f0 62 61 6c 2b 76 65 63 78 3a 79 62 61 6c 3d 79 62 |bal+vecx:ybal=yb| 00000600 61 6c 2b 76 65 63 79 0d 03 66 23 e7 20 78 62 61 |al+vecy..f#. xba| 00000610 6c 3e 33 39 20 8c 20 78 62 61 6c 3d 33 39 3a 76 |l>39 . xbal=39:v| 00000620 65 63 78 3d 2d 31 3a ef 20 37 0d 03 70 23 e7 20 |ecx=-1:. 7..p#. | 00000630 78 62 61 6c 3c 30 20 20 8c 20 78 62 61 6c 3d 30 |xbal<0 . xbal=0| 00000640 20 3a 76 65 63 78 3d 20 31 3a ef 20 37 0d 03 7a | :vecx= 1:. 7..z| 00000650 17 f1 20 8a 78 62 61 6c 2c 79 62 61 6c 29 20 bd |.. .xbal,ybal) .| 00000660 31 32 38 3b 0d 03 84 16 f1 20 8a 6f 6c 64 78 2c |128;..... .oldx,| 00000670 6f 6c 64 79 29 20 bd 33 32 3b 0d 03 8e 05 e1 0d |oldy) .32;......| 00000680 03 98 05 20 0d 03 a2 0d dd 20 f2 68 63 68 65 63 |... ..... .hchec| 00000690 6b 0d 03 ac 1c e7 20 78 62 61 6c 3d 68 62 61 74 |k..... xbal=hbat| 000006a0 2d 31 20 80 20 76 65 63 78 3e 30 20 e1 0d 03 b6 |-1 . vecx>0 ....| 000006b0 2a e7 20 78 62 61 6c 3d 68 62 61 74 20 80 20 76 |*. xbal=hbat . v| 000006c0 65 63 78 3e 30 20 ef 37 3a 76 65 63 78 3d 32 3a |ecx>0 .7:vecx=2:| 000006d0 76 65 63 79 3d 2d 31 0d 03 c0 25 e7 20 78 62 61 |vecy=-1...%. xba| 000006e0 6c 3d 68 62 61 74 2b 31 20 80 20 76 65 63 78 3e |l=hbat+1 . vecx>| 000006f0 30 20 ef 37 3a 76 65 63 79 3d 2d 31 0d 03 ca 2d |0 .7:vecy=-1...-| 00000700 e7 20 78 62 61 6c 3d 68 62 61 74 2b 31 20 80 20 |. xbal=hbat+1 . | 00000710 76 65 63 78 3c 30 20 ef 37 3a 76 65 63 78 3d 2d |vecx<0 .7:vecx=-| 00000720 32 3a 76 65 63 79 3d 2d 31 0d 03 d4 1c e7 20 78 |2:vecy=-1..... x| 00000730 62 61 6c 3d 68 62 61 74 2b 32 20 ef 37 3a 76 65 |bal=hbat+2 .7:ve| 00000740 63 79 3d 2d 31 0d 03 de 2c e7 20 78 62 61 6c 3d |cy=-1...,. xbal=| 00000750 68 62 61 74 2b 33 20 80 20 76 65 63 78 3e 30 20 |hbat+3 . vecx>0 | 00000760 ef 37 3a 76 65 63 78 3d 32 3a 76 65 63 79 3d 2d |.7:vecx=2:vecy=-| 00000770 31 0d 03 e8 2d e7 20 78 62 61 6c 3d 68 62 61 74 |1...-. xbal=hbat| 00000780 2b 33 20 80 20 76 65 63 78 3c 30 20 ef 37 3a 76 |+3 . vecx<0 .7:v| 00000790 65 63 78 3d 2d 31 3a 76 65 63 79 3d 2d 31 0d 03 |ecx=-1:vecy=-1..| 000007a0 f2 2d e7 20 78 62 61 6c 3d 68 62 61 74 2b 34 20 |.-. xbal=hbat+4 | 000007b0 80 20 76 65 63 78 3c 30 20 ef 37 3a 76 65 63 78 |. vecx<0 .7:vecx| 000007c0 3d 2d 32 3a 76 65 63 79 3d 2d 31 0d 03 fc 1c e7 |=-2:vecy=-1.....| 000007d0 20 78 62 61 6c 3d 68 62 61 74 2b 35 20 80 20 76 | xbal=hbat+5 . v| 000007e0 65 63 78 3c 30 20 e1 0d 04 06 05 e1 0d 04 10 05 |ecx<0 ..........| 000007f0 20 0d 04 1a 0d dd 20 f2 65 63 68 65 63 6b 0d 04 | ..... .echeck..| 00000800 24 1c e7 20 78 62 61 6c 3d 63 62 61 74 2d 31 20 |$.. xbal=cbat-1 | 00000810 80 20 76 65 63 78 3e 30 20 e1 0d 04 2e 29 e7 20 |. vecx>0 ....). | 00000820 78 62 61 6c 3d 63 62 61 74 20 80 20 76 65 63 78 |xbal=cbat . vecx| 00000830 3e 30 20 ef 37 3a 76 65 63 78 3d 32 3a 76 65 63 |>0 .7:vecx=2:vec| 00000840 79 3d 31 0d 04 38 24 e7 20 78 62 61 6c 3d 63 62 |y=1..8$. xbal=cb| 00000850 61 74 2b 31 20 80 20 76 65 63 78 3e 30 20 ef 37 |at+1 . vecx>0 .7| 00000860 3a 76 65 63 79 3d 31 0d 04 42 2c e7 20 78 62 61 |:vecy=1..B,. xba| 00000870 6c 3d 63 62 61 74 2b 31 20 80 20 76 65 63 78 3c |l=cbat+1 . vecx<| 00000880 30 20 ef 37 3a 76 65 63 78 3d 2d 32 3a 76 65 63 |0 .7:vecx=-2:vec| 00000890 79 3d 31 0d 04 4c 1b e7 20 78 62 61 6c 3d 63 62 |y=1..L.. xbal=cb| 000008a0 61 74 2b 32 20 ef 37 3a 76 65 63 79 3d 31 0d 04 |at+2 .7:vecy=1..| 000008b0 56 2b e7 20 78 62 61 6c 3d 63 62 61 74 2b 33 20 |V+. xbal=cbat+3 | 000008c0 80 20 76 65 63 78 3e 30 20 ef 37 3a 76 65 63 78 |. vecx>0 .7:vecx| 000008d0 3d 32 3a 76 65 63 79 3d 31 0d 04 60 2c e7 20 78 |=2:vecy=1..`,. x| 000008e0 62 61 6c 3d 63 62 61 74 2b 33 20 80 20 76 65 63 |bal=cbat+3 . vec| 000008f0 78 3c 30 20 ef 37 3a 76 65 63 78 3d 2d 31 3a 76 |x<0 .7:vecx=-1:v| 00000900 65 63 79 3d 31 0d 04 6a 2c e7 20 78 62 61 6c 3d |ecy=1..j,. xbal=| 00000910 63 62 61 74 2b 34 20 80 20 76 65 63 78 3c 30 20 |cbat+4 . vecx<0 | 00000920 ef 37 3a 76 65 63 78 3d 2d 32 3a 76 65 63 79 3d |.7:vecx=-2:vecy=| 00000930 31 0d 04 74 1c e7 20 78 62 61 6c 3d 68 62 61 74 |1..t.. xbal=hbat| 00000940 2b 35 20 80 20 76 65 63 78 3c 30 20 e1 0d 04 7e |+5 . vecx<0 ...~| 00000950 05 e1 0d 04 88 05 20 0d 04 92 0a dd 20 f2 6f 75 |...... ..... .ou| 00000960 74 0d 04 9c 1d e7 20 79 62 61 6c 3e 31 35 20 73 |t..... ybal>15 s| 00000970 65 72 76 3d 31 20 8b 20 73 65 72 76 3d 32 0d 04 |erv=1 . serv=2..| 00000980 a6 16 f1 20 8a 78 62 61 6c 2c 79 62 61 6c 29 20 |... .xbal,ybal) | 00000990 bd 33 32 3b 0d 04 b0 09 6f 75 74 3d b9 0d 04 ba |.32;....out=....| 000009a0 05 e1 0d 04 c4 05 20 0d 04 ce 0c dd 20 f2 73 63 |...... ..... .sc| 000009b0 6f 72 65 0d 04 d8 06 ef 37 0d 04 e2 16 f1 20 8a |ore.....7..... .| 000009c0 78 62 61 6c 2c 79 62 61 6c 29 20 22 20 22 3b 0d |xbal,ybal) " ";.| 000009d0 04 ec 1b e7 20 79 62 61 6c 3e 31 35 20 8c 20 65 |.... ybal>15 . e| 000009e0 6c 65 63 3d 65 6c 65 63 2b 31 0d 04 f6 1b e7 20 |lec=elec+1..... | 000009f0 79 62 61 6c 3c 31 35 20 8c 20 68 6d 61 6e 3d 68 |ybal<15 . hman=h| 00000a00 6d 61 6e 2b 31 0d 05 00 1f f1 20 8a 31 39 2c 30 |man+1..... .19,0| 00000a10 29 3b 65 6c 65 63 3b 8a 31 39 2c 33 31 29 3b 68 |);elec;.19,31);h| 00000a20 6d 61 6e 3b 0d 05 0a 1e e7 20 68 6d 61 6e 3d 31 |man;..... hman=1| 00000a30 30 20 84 20 65 6c 65 63 3d 31 30 20 67 61 6d 65 |0 . elec=10 game| 00000a40 3d b9 0d 05 14 16 e7 20 67 61 6d 65 20 ef 20 31 |=...... game . 1| 00000a50 39 2c 31 2c 37 3b 30 3b 0d 05 1e 07 d1 3d 30 0d |9,1,7;0;.....=0.| 00000a60 05 28 05 f5 0d 05 32 14 e3 20 64 65 6c 61 79 3d |.(....2.. delay=| 00000a70 31 20 b8 20 37 35 3a ed 0d 05 3c 19 e7 20 a6 28 |1 . 75:...<.. .(| 00000a80 2d 31 30 33 29 20 68 62 61 74 3d 68 62 61 74 2d |-103) hbat=hbat-| 00000a90 31 0d 05 46 19 e7 20 a6 28 2d 31 30 34 29 20 68 |1..F.. .(-104) h| 00000aa0 62 61 74 3d 68 62 61 74 2b 31 0d 05 50 23 e7 20 |bat=hbat+1..P#. | 00000ab0 63 62 61 74 3e 30 20 80 20 73 65 72 76 3d 32 20 |cbat>0 . serv=2 | 00000ac0 8c 20 63 62 61 74 3d 63 62 61 74 2d 31 0d 05 5a |. cbat=cbat-1..Z| 00000ad0 15 e7 20 68 62 61 74 3e 33 36 20 68 62 61 74 3d |.. hbat>36 hbat=| 00000ae0 33 36 0d 05 64 15 e7 20 68 62 61 74 3c 30 20 20 |36..d.. hbat<0 | 00000af0 68 62 61 74 3d 20 30 0d 05 6e 13 f1 20 8a 63 62 |hbat= 0..n.. .cb| 00000b00 61 74 2c 33 29 20 62 61 74 24 0d 05 78 15 f1 20 |at,3) bat$..x.. | 00000b10 8a 68 62 61 74 2c 32 37 29 20 62 61 74 24 3b 0d |.hbat,27) bat$;.| 00000b20 05 82 0b fd 20 91 3e 31 30 30 0d 05 8c 05 e1 0d |.... .>100......| 00000b30 05 96 05 20 0d 05 a0 0c dd 20 f2 65 72 72 6f 72 |... ..... .error| 00000b40 0d 05 aa 0c e7 20 9f 3d 31 37 20 f9 0d 05 b4 09 |..... .=17 .....| 00000b50 ef 32 32 2c 36 0d 05 be 15 f6 3a f1 3b 22 20 61 |.22,6.....:.;" a| 00000b60 74 20 6c 69 6e 65 20 22 3b 9e 0d 05 c8 05 e0 0d |t line ";.......| 00000b70 ff |.| 00000b71