-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTYPING_PRO.BAS
29 lines (29 loc) · 1.69 KB
/
TYPING_PRO.BAS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
10 screen 2,0,1,1
20 dim str w_data(3,10)={"47","ホエホエ","コンニチハ","ンター","ウルウル","オヒサデス","ポ","ヒョヒョ","プププ","ナンタラカタラ","パモパモ"
30 ,"46","クマ","サル","クジラ","アルマジロ","ナマケモノ","ラッコ","オランウータン","シマリス","エリマキトカゲ","ライチョウ"
40 ,"59","フルイケヤ","カワズトビコム","ミズノオト","ナツクサヤ","ツワモノドモガ","ユメノアト","メニアオバ","ヤマ","ホトトギス","ハツガツオ"}
50 str q
60 int i,t
70 dim int time(3),htime(3)={0,20,30,30}
80 while (1)
90 print" 記録"
100 print"1.チャッターコース",htime(1);"秒"
110 print"2.動物さん コース",htime(2);"秒"
120 print"3.俳句さん コース",htime(3);"秒"
130 input "どのコースでいきますか?(1-3)";i
140 if i<1 or i>3 then continue
150 time(i)=val(right$(time$,2))+val(mid$(time$,4,2))*60
160 for j=1 to 10
170 print w_data(i-1,j)
180 for t=1 to len(w_data(i-1,j))
190 q=inkey$(0):print q;
200 if q="" then t=t-1:continue
210 if q<>mid$(w_data(i-1,j),t,1) then beep :t=t-1:print chr$(&H1D);:continue
220 next
230 print
240 next
250 time(i)=val(right$(time$,2))+val(mid$(time$,4,2))*60-time(i)
260 print "所要時間";time(i);"秒"
270 print "一文字平均時間";time(i)/val(w_data(i-1,0));"秒"
280 if time(i)<htime(i) then print"新記録でっせ!":htime(i)=time(i)
290 endwhile