home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 17
/
Tiger_Disk_017_19xx_Tiger-Crew-Disk_de_Side_B.d64
/
multi-master
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
97 lines
1 poke53280,11:poke53281,11
5 poke 53272,peek(53272)or2:poke646,7
10 print "[147] [215]illkommen zu [205]ultimaster [146]!"
20 print " [205]it diesem [208]rogramm kannst [196]u [196]eine"
30 print "[198]aehigkeiten der [205]ultiplikation bis zu"
40 print "12 [216] 12 testen. - [197]s stehen jeweils"
50 print "mehrere [193]ntworten zur [193]uswahl, die [196]u"
60 print "durch [196]ruecken der '[198]'-[212]asten anwaehlen"
70 print "kannst."
90 print " [196]u hast 30 [211]ekunden [218]eit,"
100 print "um so viele richtige [193]ntworten wie"
110 print "moeglich zu geben. - [196]ie [208]unktzahl"
120 print "richtet sich nach der [211]chwierigkeit der"
130 print "[193]ufgabe: 7[216]9 ist z.[194]. schwerer als 1[216]2."
140 print "[211]obald [196]u f7[146] drueckst, beginnen die"
142 print "30 [211]ekunden."
144 print spc(8)"[196][210][213][197][195][203][197] [160]f7 [218][213][205] [211][212][193][210][212]"
146 get a$:if a$=""goto 146:if asc(a$)<>136 goto 146
190 ss=ti: tc=0
200 x=rnd(0)
210 nc=0: ts=0
230 x=int(rnd(1)*12)+1:y=int(rnd(1)*12)+1
235 if y=0 and x=0 goto 230
250 x1=x+1: y1=y+1: y2=y-1
260 r(1)=x*y: r(2)=x*y1: r(3)=x*y2: r(4)=x1*y
262 if x=0 then r(2)=y+1:r(3)=y+3
264 if y=0 then r(3)=r(2)+1:r(4)=r(3)+1
270 pn=int(rnd(1)*4)+1: rem position of correct answer
280 j=1: for k=1 to 4
290 if k=pn then pr(k)=r(1):goto 310
300 j=j+1: pr(k)=r(j)
310 next
320 print "[147]"
330 print spc(10) "f1[146] ";pr(1):print
340 print spc(10) "f3[146] ";pr(2)
345 print spc(17) ;x;"x";y
350 print spc(10) "f5[146] ";pr(3):print
360 print spc(10) "f7[146] ";pr(4):print
370 poke 198,0
400 get a$:if ti>ss+1800 goto 2000
401 if a$="" goto 400
402 n=7+2*(asc(a$)-132):l=n*40+14
404 poke 1023+l,122
406 poke 55295+l,1
408 tc=tc+1
410 if asc(a$)-132=pn then gosub 1000:goto 230
440 print spc(5);"[198][193][204][211][195][200]! - [210]ichtig ist : ";r(1)
450 for j=1 to 10 : for k=1 to 100:next:next
460 goto 230
1000 nc=nc+1
1020 if x>3 goto 1050
1030 if y<12 then ts=ts+1:return
1040 ts=ts+2: return
1050 if x>6 goto 1090
1060 if y>6 and y<10 then ts=ts+2:return
1070 if y=12 then ts=ts+4: return
1080 ts=ts+1: return
1090 if x>9 goto 1098
1091 if y>3 and y<7 then ts=ts+2:return
1092 if y>6 and y<10 then ts=ts+3
1094 if y=12 then ts=ts+5: return
1096 ts=ts+1: return
1098 if x>9 and x<12 and y<>12 then ts=ts+1: return
1099 if x>9 and x<12 and y=12 then ts=ts+5: return
1100 if y>3 and x<7 then ts=ts+4:return
1110 if y<4 then ts=ts+2: return
1120 if y=10 then ts=ts+1: return
1130 ts=ts+5: return
2000 rem
2040 xx=ts :lc=10
2050 for k=0 to 9
2060 if hs(k)=0 then lc=k: goto 2085
2070 if hs(k)<xx then xx=hs(k):lc=k
2080 next
2085 :
2090 if lc>9 goto 2200
2100 hs(lc)=ts
2200 print "[147] [196]ein [197]rgebnis: ";ts
2202 if nc=0 or tc=0 then pt=0: goto 2210
2204 pt=int(nc/tc*100)
2210 print " [208]rozentsatz: ";pt;"%";
2220 print " (";nc;" von ";tc;")"
2225 print
2230 print spc(5);"[196]ie bisher 10 hoechsten [208]unkte"
2235 print
2240 for k=0 to 9
2250 if hs(k)=0 goto 2270
2260 print spc(15);hs(k)
2270 next
2280 print spc(5) "[206]ochmal ?"
2290 print spc(15)"f2[146] [202][193]"
2300 print spc(15)"f8[146] [206]ein"
2310 get a$: if a$="" goto 2310
2320 if asc(a$)=137 goto 190
2330 if asc(a$)=140 then end
2340 goto 2310