home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Run Magazine ReRun 1987 January & February
/
rerun-1987-01-02.d64
/
spelling
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-09-20
|
3KB
|
93 lines
1 rem programmer: don ferguson
2 rem 901 hackney
3 rem st.marys, ohio 45885
5 rem words entered into data statements beginning with line 10000
6 rem be sure to end data statements with *
7 rem public domain program
10 poke53280,2:poke53281,1:poke53272,23
100 print"[147]"
200 print" [144][211][208][159][197][156][204][204][158][201][206][199]"
225 fori=1to2000:next:print"[147]"
261 print"[147]"
262 restore
265 rem: menu routine
267 print"[211][212][213][196][217][160][215][207][210][196][211] (1)"
268 print:print" [212][193][203][197] [212][197][211][212] (2)"
270 getchoice$:ifchoice$=""then goto 270
275 if choice$="1"then (NULL) to 2000
276 ifchoice$="2" then goto2500
277 ifchoice$<>"1"andchoice$<>"2"thengoto270
279 print"[147]"
280 print"[147]":printtab(12)"[212][197][211][212] [194][197][199][201][206][211]"
281 for x=1to2500:next
290 sum=0
300 read a$
310 count=0
350 if a$="*"then goto 10050
395 print"[147]":forz=1to500:next
396 fori=1 to 10
397 print"";a$
398 print"[147]"
400 next
500 print"[147]":fori=1to 300:next
610 input "[195][207][210][210][197][195][212][160][211][208][197][204][204][201][206][199]";b$
650 count=count+1
700 if b$=a$ then sum=sum+5:gosub5000:goto300
705 if b$<>a$thengosub 6000
710 sum=sum-1
750 if count=3 then 950
800 goto 395
925 print"[147]"
930 goto261
940 print"[147]"
950 print "[195][207][210][210][197][195][212][160][211][208][197][204][204][201][206][199][160][201][211]: "a$
955 input"[212][217][208][197][160][195][207][210][210][197][195][212][160][215][207][210][196]:";b$
956 if b$<>a$then goto940
960 print"[208]ress any key to continue"
980 get q$:ifq$=""then goto980
990 print"[147]"
1000 goto300
1200 print"[212][193][203][197] [212][197][211][212][160][193][199][193][201][206]; [217]/[206]"
2000 rem: study word routine
2050 print"[147]"
2100 reada$
2200 print"";a$
2250 if a$="*"then goto261
2300 print:print:print:print"[208][210][197][211][211][160][193][206][217][160][203][197][217][160][212][207][160][211][197][197][160][206][197][216][212][160][215][207][210][196]"
2310 getl$:ifl$=""then goto2310
2312 print"[147]"
2400 (NULL) to 2100
2500 print"[147]":print"[208][207][201][206][212] [193][215][193][210][196][211]"
2510 print:print:print"[195][207][210][210][197][195][212][160][198][201][210][211][212][160][212][201][205][197] = +5[160][208][207][201][206][212][211]"
2520 print:print"[215][210][207][206][199][160][197][193][195][200][160][212][201][205][197][160]= -1 [208][207][201][206][212]"
2530 print:::print"[208][210][197][211][211][160][193][206][217] [203][197][217][160][212][207][160][194][197][199][201][206]"
2540 get a$:ifa$=""then2540
2610 print"[147]":goto279
5000 rem bell sound
5010 poke54296,15:poke54277,0:poke54278,247
5020 poke54276,17:poke54273,40:poke54272,0
5030 for t=1to500:next:poke54276,6
5040 print"[147]":forx=1to6:printtab(17)"[210][201][199][200][212]!":fory=1to80:next:print"[147]"
5050 forz=1to80:next:next:return
6000 rem buzzer
6010 poke54296,15:poke54277,45:poke54268,165
6020 poke54276,33:poke54273,6:poke54272,5
6030 fort=1to500:next:poke54276,32:poke54273,0:poke54272,0
6040 print"[147]":forx=1to6:printtab(17)"[215][210][207][206][199]!":fory=1to80:next:print"[147]"
6050 forz=1to80:next:next:return
10000 data accidentally,attendance,benefit,characteristic,deny,double,elaborate
10001 data misspell,*
10020 rem*******message routine*****
10050 if sum<75 then msg$="[217]ou need to study your words"
10051 if sum>75 and sum<84 then msg$="[208]retty good job"
10052 if sum>84 and sum<94 then msg$="[210]eal good"
10053 if sum>94 and sum<100 then msg$="[193]lmost perfect"
10054 if sum>99 thenmsg$="[208]erfect score!! [200]ooray!!!
10055 [153]"";msg$
10058 [153]:[153]:[153]"(NULL)(NULL)(NULL)(NULL)close(NULL)len(NULL)(NULL)valclose(NULL)atn(NULL)close";sum
10060 [153]:[153]:[153]"(NULL)ake test again? y/n"
10350 [161]z$:[139]z$[178]""[167] 10350
10400 [139] z$[178]"y" [167] 261
10500 [153]"load":[153]"(NULL)ee you later."
10600 [128]