125 X% = PEEK(PE%) -KN%: IF X% = K7% THEN NORMAL : POP : GOSUB 1639: GOTO 6100
130 IF X% = K1% THEN NORMAL : GOSUB 100:V5% = V5% +1: IF V5% +K5% *H% >RC% OR V5% >K5% THEN H% = NOT H%:V5% = 1: IF H% AND RC% = <K5% THEN H% = 0
135 IF X% = K8% THEN NORMAL : GOSUB 100:V5% = V5% -1: IF V5% <1 THEN V5% = (K5% *H%) +(RC% -K5% *(RC% >K5%)) *(H% = 0):H% = NOT H%: IF H% AND RC% < = K5% THEN H% = 0
140 IF X% = K8% OR X% = K1% THEN 115
150 IF X% = K2% THEN RC%(XC%) = NOT RC%(XC%): IF NOT RC%(XC%) THEN NORMAL
155 IF X% = K2% THEN HTAB 2 +20 *H%: VTAB PEEK(37): PRINT SC$: GOSUB 1070: GOTO 115
160 IF X% = K9% THEN GOSUB 185: GOSUB 1070
165 IF X% = K3% THEN NORMAL : GOSUB 100: GOTO 175
170 GOTO 115
175 FOR I = 1 TO RC%: IF RC%(I) THEN RF% = 1: RETURN
180 NEXT : POP : GOSUB 1639: GOTO 6100
185 X3% = V5% -1: FOR I = XC% TO RC%:RC%(I) = NOT RC%(I): IF NOT RC%(I) THEN NORMAL
1453 VTAB 24: HTAB 13: PRINT "(HAND SALUTE) ";: GOSUB 1070: IF NOT CA% AND NOT PF% THEN GET A$: POKE K%,0:E = RND( -( PEEK(78) + PEEK(79) *256)):E = 1
1454 HTAB 1: CALL CL%: VTAB 23: PRINT : RETURN
1456 SPEED= 255: VTAB 24: HTAB 10: INVERSE : PRINT "STRIKE KEY WHEN READY";: NORMAL : GOSUB 1070: GET A$: VTAB 24: HTAB 1: CALL CL%: POKE K%,0: RETURN
1459 HOME : PRINT " * * SPECIFIC WORKOUT * *": POKE 34,22: FOR K = 1 TO 3: HOME : IF PF% THEN ON P1% GOSUB 1549,1555:A$ = STR$(TE%):R% = RND(E) *6 +2: FOR J = 1 TO 500: NEXT : GOTO 1465
1462 VTAB 23: HTAB 1: PRINT WA$(K)" SPECIFIC ABILITY TO WORK ON ? ";: GOSUB 1075: PRINT A$;: IF A$ <"1" OR A$ >"9" THEN 1462
1465 SPEED= 76
1468 X% = 6:X1% = 2:Y% = VAL(A$): INVERSE : VTAB Y% +2: HTAB 5: PRINT AB$(Y%),AB%(Y%);: IF NOT PF% THEN GOSUB 1100
1471 VTAB Y% +2: FOR I = 1 TO R%: HTAB 17:AB%(Y%) = AB%(Y%) +1: PRINT AB%(Y%);: POKE 6,20 -I: POKE 7,1: CALL SD%: NEXT : NORMAL : HTAB 5: PRINT AB$(Y%),AB%(Y%)
1474 Y% = RND(E) *9 +1: IF Y% = VAL(A$) THEN 1474
1477 X% = RND(E) *4 +1: INVERSE : HTAB 17: VTAB Y% +2: PRINT AB%(Y%);: FOR I = 1 TO X%: HTAB 17: IF AB%(Y%) >0 THEN AB%(Y%) = AB%(Y%) -1
1480 PRINT AB%(Y%);: POKE 6,I +15: POKE 7,1: CALL SD%: NEXT : NORMAL : HTAB 17: PRINT AB%(Y%): SPEED= 255: GOSUB 1483: NEXT : POKE 34,20: RETURN
1483 A1% = 0: VTAB 3: FOR I = 1 TO 9: HTAB 17: PRINT " ";: HTAB 17: PRINT AB%(I):A1% = A1% +AB%(I): NEXT :AV% = A1%/9 +.5: PRINT : HTAB 19: PRINT AV%: RETURN
1495 FOR I = 16 TO 1 STEP -1: IF EX% > = PR%(I) AND AV% > = AA%(I) AND RA% <I THEN 1501
1498 NEXT : RETURN
1501 HOME : VTAB 20: INVERSE : HTAB 5: PRINT S$;S$;" C O N G R A T U L A T I O N S ": NORMAL : VTAB 22: HTAB 5: SPEED= 20: PRINT NA$;" IS BEING PROMOTED!!": SPEED= 255: POKE 34,0
1516 SPEED= 76: FOR I = 1 TO 9: IF PF% THEN R% = RND(E) *3: FOR J = 1 TO 500: NEXT
1519 X% = 3:X1% = 0: INVERSE : HTAB 5: VTAB I +2: PRINT AB$(I),AB%(I);: IF NOT PF% THEN GOSUB 1100
1522 VTAB I +2: FOR J = 1 TO R%: IF R% < >0 THEN HTAB 17:AB%(I) = AB%(I) +1: PRINT AB%(I);: POKE 6,18 -J: POKE 7,1: CALL SD%
1525 : NEXT : NORMAL : HTAB 5: PRINT AB$(I),AB%(I): NEXT : SPEED= 255: GOSUB 1483: RETURN
1528 HOME : PRINT "WORKOUT:": POKE K%,0: IF CA% THEN A$ = "C": GOTO 1537
1531 VTAB 23: HTAB 1: PRINT W$;: GOSUB 1075: PRINT A$;: IF A$ < >"S" AND A$ < >"G" AND A$ < >"C" AND A$ < >ES$ THEN 1531
1534 IF A$ = ES$ THEN A$ = "": PRINT : POP : GOTO 1345
1537 IF A$ = "C" THEN GOSUB 1549:PF% = 1:P1% = 1: IF RND(E) <.35 AND AB%(TE%) >AV% -7 THEN A% = 1:P1% = 2: RETURN
1540 IF A$ = "C" AND AB%(TE%) <AV% -4 THEN A% = 1: RETURN
1543 IF A$ = "S" THEN A% = 1: RETURN
1546 A% = 2: RETURN
1549 TE% = 1: FOR J = 1 TO 9: IF AB%(TE%) >AB%(J) AND RND(E) <.85 THEN TE% = J
1552 NEXT : RETURN
1555 ON INT( RND(E) *6) +1 GOTO 1558,1561,1564,1567,1558,1561
1558 TE% = 7 +(AB%(8) >AB%(7)): RETURN
1561 TE% = 2 +2 *(AB%(4) <AB%(2)): RETURN
1564 TE% = 3 +2 *(AB%(5) <AB%(3)): RETURN
1567 TE% = 1 +(AB%(2) <AB%(1)): RETURN
1570 POKE 34,5: HOME : VTAB 12: HTAB 8: PRINT "ONE ETERNAL MOMENT PLEASE"
1573 GOSUB 1318: ONERR GOTO 19000
1576 FOR V = 0 TO 3: IF NOT VFL%(V) THEN 1603
1579 PRINT D$"UNLOCK TOP10."V$(V)",D1"
1582 PRINT D$"OPEN TOP10."V$(V)
1585 PRINT D$"DELETE TOP10."V$(V)
1588 PRINT D$"OPEN TOP10."V$(V)
1591 PRINT D$"WRITE TOP10."V$(V)
1594 FOR I = 1 TO 15: FOR J = 1 TO 9: PRINT T1$(V,I,J): NEXT J,I
1597 PRINT D$"CLOSE"
1600 PRINT D$"LOCK TOP10."V$(V)
1603 NEXT V
1606 GOSUB 1318: ONERR GOTO 19000
1609 PRINT D$"RUN P20,D1"
1612 END
1615 GOSUB 1318: ONERR GOTO 19000
1618 PRINT D$"UNLOCK UL.4,D1"
1621 PRINT D$"OPEN UL.4,D1"
1624 PRINT D$"WRITE UL.4"
1627 FOR I = 1 TO 5: PRINT IN$(I): FOR J = 1 TO 4: PRINT IA%(I,J): NEXT J,I
1630 PRINT D$"CLOSE"
1633 PRINT D$"LOCK UL.4"
1636 RETURN
1639 TEXT : HOME : FOR J = 1 TO 2: VTAB J: PRINT L$: NEXT J: VTAB 3: PRINT " W E L C O M E T O T H E D O J O": PRINT L$: FOR J = 5 TO 23 STEP 2: VTAB J: PRINT L$;: NEXT J: RETURN
1642 FL% = 0: GOSUB 1657: GOSUB 1450
1645 VTAB 22: SPEED= 135: PRINT "PLEASE REMOVE YOUR BELT, " LEFT$(NA$,14)".": GOSUB 1456: HOME : SPEED= 35: IF RA% < >1 THEN GOSUB 1675
1648 HOME : SPEED= 135: VTAB 22: PRINT NS$;" PRESENTS THE NEW BELT": PRINT "TO "NA$".": GOSUB 1738: HOME : VTAB 22: PRINT "PLEASE PUT YOUR NEW BELT ON...": GOSUB 1456: HOME : SPEED= 35:RA% = RA% +1:FL% = 1: GOSUB 1657
1651 HOME : SPEED= 135: VTAB 22: IF RA% = 16 THEN GOSUB 1744: POP : POP : GOTO 1369
1723 FOR J = X% TO Y% STEP Z%: FOR Z = 1 TO 9:T1$(V1%,J,Z) = T1$(V1%,J +Z%,Z): NEXT Z,J: RETURN
1726 IF RA% <3 THEN V% = 0: RETURN
1729 IF RA% <5 THEN V% = 1: RETURN
1732 IF RA% <7 THEN V% = 2: RETURN
1735 V% = 3: RETURN
1738 POKE K%,0: FOR I = 1 TO 23: POKE 6,PI%(I): POKE 7,DU%(I): CALL SD%: IF PEEK(PE%) >127 THEN POKE K%,0: RETURN
1741 NEXT : RETURN
1744 V% = 4: GOSUB 1693: IF WNS%/(WNS% +LS%) *1000 <600 THEN HOME : PRINT "YOU HAVE ACHEIVED RED BELT, BUT YOUR OVERALL RECORD IS NOT GOOD ENOUGH TO ALLOW YOU TO BECOME AN INSTRUCTOR.": GOSUB 1456: GOTO 1771
1747 PRINT S$S$NA$" IS NOW READY TO BECOME A": PRINT "COMPETITION KARATE INSTRUCTOR!!": GOSUB 1738
1750 IF NOT IA%(IN%,4) THEN 1774
1753 HOME : VTAB 22: PRINT "IS "NA$" WILLING TO ACCEPT THE": VTAB 23: HTAB 1: PRINT "HONOR OF BECOMING A COMPETITION KARATE INSTRUCTOR [YES/NO] ? ";: SPEED= 255: GOSUB 1020:A$ = C$: HOME : IF A$ < >"YES" AND A$ < >"NO" THEN 1753
1756 SPEED= 135: IF A$ = "NO" THEN 1771
1759 HOME : VTAB 22: PRINT NS$" GRACIOUSLY RETIRES, AND": PRINT "TURNS THE DOJO OVER TO "NA$".": SPEED= 255: GOSUB 1453
1768 GOSUB 11030:US% = 3:RE% = 0: GOSUB 12000: POP : POP : POP : GOTO 1345
1771 HOME : VTAB 22: SPEED= 135: PRINT "THE WORLD OF COMPETITION KARATE BIDS YOUFOND FAREWELL. ENJOY YOUR RETIREMENT.": SPEED= 255: GOSUB 1453: GOSUB 1738:US% = 3: RETURN
1774 HOME : VTAB 22: PRINT "WILL "NS$" VOLUNTARILLY": PRINT "RETIRE AND NO LONGER BE AN INSTRUCTOR [YES/NO] ? ";: SPEED= 255: GOSUB 1020:A$ = C$: HOME : IF A$ < >"NO" AND A$ < >"YES" THEN 1774
1777 SPEED= 135: IF A$ = "YES" THEN 1753
1780 HOME : VTAB 22: PRINT "DOES "NA$" WISH TO CHALLENGE": PRINT NS$;: PRINT " [YES/NO] ? ";: SPEED= 255: GOSUB 1020:A$ = C$: HOME : IF A$ < >"NO" AND A$ < >"YES" THEN 1780
1783 SPEED= 135: IF A$ = "NO" THEN : GOTO 1771
1786 VTAB 22: PRINT "YOU MUST FACE EACH OTHER IN A CHALLENGE.":US% = 1: SPEED= 255: GOSUB 1453: RETURN
2000 POKE 34,5: HOME : PRINT D$"CAT,D" PEEK(798): PRINT : GET A$: GOSUB 1639: RETURN
2100 POKE 34,4: HOME : POKE 34,6: VTAB 7: FOR I = 1 TO 30: HTAB 1 +20 *(I >15): IF I = 16 THEN VTAB 7
2105 PRINT BR$ LEFT$(RN$(I),15): NEXT : POKE 34,22
2110 VTAB 5: HTAB 1: INVERSE : PRINT PN$;: NORMAL : HTAB 30: PRINT SPC( RC% <10)RC%SC$"STUDENT";: IF RC% < >1 THEN PRINT "S"
2115 RETURN
2120 VTAB 23: CALL CL%: PRINT "COMPUTER WORK OUT FOR ALL [Y/N] ? [N]";: HTAB 36: GOSUB 1070: GET A$: IF A$ = ES$ THEN POP : GOTO 6100
2122 IF A$ = "Y" THEN PRINT A$:CA% = 1
2123 RETURN
2150 NA$ = "": FOR I = 1 TO RC%: IF PEEK(PE%) -KN% = K7% THEN 2165
2155 IF RC%(I) THEN RC%(I) = 0:NA$ = RN$(I): RETURN
30010 K% = -16368: FOR I = 1 TO 9: READ AB$(I): NEXT : FOR I = 1 TO 16: READ RA$(I),PR%(I),AA%(I),CL%(I): NEXT : FOR I = 0 TO 3: READ V$(I): NEXT : FOR I = 1 TO 3: READ WA$(I): NEXT : FOR I = 1 TO 23: READ PI%(I),DU%(I): NEXT :S1$ = CHR$(7):S$ = S1$ +S1$: POKE 44452,18: POKE 44605,17: RETURN
40032 DATA STRENGTH,AGILITY,QUICKNESS,STAMINA,PERCEPTION,COURAGE,ARMS,LEGS,BODY,WHITE,1,10,15,YELLOW,110,20,13,PURPLE,310,31,3,BLUE,520,43,2,GREEN,750,56,4,BROWN,1020,71,8
40040 DATA WHITE,BLUE,BROWN,BLACK,FIRST,SECOND,THIRD,68,255,76,120,68,255,51,220,57,220,68,120,76,120,68,255,57,120,76,255,68,220,64,220,51,120,68,120,68,255,57,120,76,220,76,220,68,220,64,220,68,120,57,120,51,255