home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 45
/
Tiger_Disk_045_1997-12_Tiger-Crew-Disk_de_Side_A.d64
/
streichholz-game
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
63 lines
1 gosub 2500
10 print"[147] kennst du die spielregeln (j/n)?"
20 geta$:ifa$=""ora$<>"j"anda$<>"n"then20
30 ifa$="n"thengosub1000
40 ho=26
50 gosub5000
70 print"[147]"
80 print" noch"ho"hoelzer."
90 print" wieviele nimmst du ?":a=0
100 geta$:ifa$=""then100
105 ifval(a$)>4orval(a$)<1then100
110 ho=ho-val(a$)
120 print"[147]":ifho<=0then250
130 print" noch"ho"hoelzer."
140 gosub500
150 print" ich nehme"a".":fori=1to2000:next
160 ho=ho-a
170 ifho<=0then190
180 goto70
190 print"[147]"
200 print" diesmal habe ich gewonnen !"
210 print" nochmal (j/n)?"
220 geta$:ifa$=""then220
230 ifa$="j"thenrun40
240 ifa$="n"thenprint"[147]":end
245 goto220
250 print" kompliment !!!"
260 print" du hast gewonnen !"
270 goto210
500 onrgoto700,501,600
501 ifho=19orho=24orho=4orho=9thena=4:return
510 ifho=23orho=18orho=8orho=3thena=3:return
520 ifho=22orho=20orho=12orho=17orho=7orho=2thena=2:return
530 a=1:return
600 ifho=20thena=1:return
610 goto501
700 a=int(4*rnd(1)+1):return
1000 print"[147]"
1010 print" auf einem tisch liegen 26 "
1020 print" streichhoelzer. man muss zwischen "
1030 print" einem und vier nehmen."
1040 print" der, der das letzte hoelzchen nimmt,"
1050 print" hat gewonnen."
1060 print">> taste <<"
1070 geta$:ifa$=""then1070
1080 return
2500 print"[147]":poke53281,6:poke53280,14
2510 fori=1to20
2520 co=int(15*rnd(1)):ifco=6then2520
2530 poke646,co
2540 print" streichholz-game"
2550 next
2560 print"[144] geschrieben von klaus gruebener"
2580 fori=1to5000:next:print"":return
5000 print"[147] bitte waehlen sie nun die"
5010 print" spielstufe aus :"
5020 print" 1) anfaenger"
5030 print" 2) normal"
5040 print" 3) profi"
5050 getr$:ifr$=""then5050
5060 r=val(r$):ifr>3orr<1then5050
5070 return