10120 PRINT D$"BSAVE STUDENTS & ROSTERS,A768,L1,D" PEEK(798)
10130 PRINT D$"LOCK STUDENTS & ROSTERS,D" PEEK(798)
10140 INVERSE : VTAB 20: HTAB 15: GOSUB 1000: PRINT " COMPLETED ": NORMAL : FOR I = 1 TO 2000: NEXT :DF% = 1: RETURN
19000 CALL 787: POKE PK%,0: IF PEEK(222) = 255 THEN CALL 803
19002 IF PEEK(222) < >9 THEN 19010
19005 FLASH : PRINT : PRINT S$"DATA DISK IS FULL": NORMAL : PRINT : PRINT "INSERT A PREPARED DATA DISK WITH FREE SPACE AND STRIKE [ANY KEY] TO CONTINUE": PRINT "OR [ESC] TO ABORT ";: GET A$: PRINT : IF A$ < >ES$ THEN ON FL% GOTO 22340,22551
19006 ON FL% GOTO 19065,19022
19010 IF PEEK(222) < >6 THEN 19050
19015 IF PEEK(222) = 6 THEN FLASH : HOME : PRINT S$"TEAM ROSTER NOT FOUND": NORMAL : IF P$ = "C" THEN 19025
19020 PRINT : PRINT "[C]REATE ROSTER USING EXISTING NAME [E]NTER ANOTHER ROSTER NAME ? [C]";: HTAB PEEK(36) -1: GET A$: IF A$ = "E" THEN PRINT A$: GOTO 19035
19022 PRINT : IF A$ = ES$ OR PNA$ = "" THEN POP : HOME : FLASH : HTAB 15: PRINT " NOT ADDED ": NORMAL : VTAB 23: GOTO 22075
19025 IF NOT EF% THEN HOME : RETURN
19026 IF EF% THEN HOME : GOTO 22550
19034 IF P$ = "C" THEN POKE 800,1 + PEEK(800):PNA$ = "COMPUTER-" + STR$( PEEK(800)):PF% = 1: GOTO 19042
19055 IF PEEK(222) = 10 THEN FLASH : PRINT : PRINT S$"THERE IS ALREADY A STUDENT BY THIS NAME": NORMAL
19060 PRINT : PRINT "[NEW NAME] [C]ATALOG [ESC]=ABORT": PRINT "=> ";: GOSUB 503:NA$ = C$: IF C$ = "" THEN HOME : GOTO 19060
19061 IF NA$ = "C" THEN POKE 44452,11: POKE 44605,10: GOSUB 22710: GOTO 19060
19063 PRINT : IF NA$ < >ES$ THEN 22340
19065 HOME : HTAB 15: FLASH : PRINT " NOT SAVED ": NORMAL : POP : VTAB 23: GOTO 22075
19070 FLASH : PRINT S$" DISK ERROR ";: NORMAL : PRINT " CHECK SETUP AND STRIKE KEY";: GET A$: HTAB 1: CALL -868: VTAB PEEK(37): PRINT : RESUME
20020 HOME : POKE 34,6: INVERSE : HTAB 14: PRINT " NEW STUDENT ": NORMAL : IF R% THEN 20110
20021 HOME : PRINT : HTAB 7: PRINT "WELCOME TO STUDENT CREATION!!": VTAB 14: HTAB 10: PRINT "PRESS [Y] IF YOU NEED": PRINT : HTAB 10: PRINT "TO CREATE A DATA DISK"
20080 GOSUB 21510: IF A$ = ES$ THEN POP : GOTO 22440
20085 IF A$ = "Y" THEN GOSUB 10000: POKE 34,6
20110 HOME : PRINT : PRINT "FOR SOLITAIRE PLAY, THE COMPUTER CAN GENERATE IT'S OWN STUDENTS.": PRINT
20112 PRINT : PRINT "STUDENT TO BE CREATED BY:": PRINT : PRINT "[P]LAYER OR [C]OMPUTER ? [P]";: HTAB PEEK(36) -1: GOSUB 1000: GET P$: IF P$ = ES$ THEN 20021
20115 POKE 34,4: RETURN
21010 HOME : PRINT "BELOW ARE THE AVAILABLE MARTIAL ARTS INSTRUCTORS. BY THEIR NAMES ARE LISTED ABILITIES WHICH THEIR STYLES EXCEL IN.": PRINT
21030 FOR I = 1 TO 5: PRINT "[";I;"] ";: INVERSE : PRINT INST$(I);: NORMAL : PRINT " -": HTAB 7: FOR J = 1 TO 3: PRINT ABIL$(IAB%(I,J));: IF J < >3 THEN PRINT ", ";
21035 NEXT J: PRINT : PRINT : NEXT I: PRINT TAB( 7);"SELECT ONE -> [ ]";: IF P$ = "C" THEN FOR I = 1 TO 500: NEXT :IN% = RND(E) *5 +1: GOTO 21060
21050 HTAB 22: VTAB 24: PRINT SP$;: HTAB 22: GOSUB 1000: GET A$: IF A$ = ES$ THEN POP : GOTO 90
21051 IF A$ <"1" OR A$ >"5" THEN 21050
21052 IN% = VAL(A$)
21060 HTAB 22: VTAB 24: PRINT IN%;: GOSUB 21610: FOR I = 1 TO 700: NEXT : RETURN
21210 HOME : FOR I = 1 TO 9: VTAB I +5: HTAB 7: PRINT ABIL$(I): NEXT : PRINT : PRINT "OVERALL AVERAGE : 0";: HTAB 25: PRINT "HT: WT:": VTAB 18: PRINT L1$: POKE 34,19: IF P$ < >"C" THEN GOSUB 21100: GOSUB 1000
21227 AVG% = 0:H% = 19: FOR I = 1 TO 9: POKE PK%,0:V% = I +5: VTAB V%: HTAB H% -1: PRINT "[ ]";: HTAB 7: INVERSE : PRINT ABIL$(I);
21228 IF P$ = "C" THEN FOR J = 1 TO 15: NEXT :R% = RND(E) *16 +3: GOTO 21285
21280 R% = RND(E) *R1% +R2%: HTAB H%: PRINT SC$;: HTAB H%: PRINT R%;: IF PEEK(PE%) <128 THEN 21280
21290 FOR I = 1 TO 300: NEXT : VTAB 19: CALL -958: FOR I = 1 TO 9: FOR J = 1 TO 3: IF I = IAB%(IN%,J) THEN POKE 6,12: POKE 7,30: CALL 768: VTAB I +5: HTAB 5: PRINT "*":J = 3
21291 NEXT J,I: IF P$ = "C" THEN RETURN
21292 HOME : PRINT "ASTERISKS (*) INDICATE THOSE ABILITIES WHICH ";INST$(IN%)"'";: IF RIGHT$(INST$(IN%),1) < >"S" THEN PRINT "S";
21295 PRINT " STYLE EMPHASIZES": VTAB 22: HTAB 1: PRINT "AND WILL BE THE EASIEST TO IMPROVE.": GOSUB 21510: RETURN
21960 HOME : PRINT "PLEASE ENTER THE STUDENT'S [NAME]": PRINT "[C]ATALOG => ";: SPEED= 255: GOSUB 503:NA$ = C$: IF NA$ = "" OR NA$ = ES$ OR NA$ = "R" THEN 21960
21962 GOSUB 22700: IF C$ = "" THEN PRINT S$;: GOTO 21960
21964 IF NA$ = "C" THEN POKE 34,18: POKE 44452,5: POKE 44605,4: GOSUB 22710: POKE 34,19: GOTO 21960
21970 IF P$ = "C" THEN PNA$ = "COMPUTER-" + STR$( PEEK(800)): GOTO 22050
22040 HOME : PRINT "ADMIT THIS STUDENT INTO THE WORLD OF COMPETITION KARATE [YES/NO] ? ";: SPEED= 255: GOSUB 503: IF C$ < >"NO" AND C$ < >"YES" THEN VTAB 22: CALL -958: GOTO 22040
22041 IF C$ = "NO" THEN VTAB 4: CALL -868: HOME : PRINT : GOTO 22075
22042 SPEED= 190
22045 HOME : PRINT "ADD THIS STUDENT TO WHICH [TEAM ROSTER] [C]ATALOG [RETURN] FOR NONE": PRINT "=> ";: SPEED= 255: GOSUB 503:PNA$ = C$: IF PNA$ = ES$ THEN PNA$ = ""
22046 IF PNA$ = "C" THEN POKE 34,18: POKE 44452,5: POKE 44605,4: GOSUB 22710: POKE 34,19: GOTO 22045
22048 IF PNA$ < >"" THEN IF LEFT$(PNA$,1) <"A" OR LEFT$(PNA$,1) >"Z" THEN PRINT S$;: GOTO 22045