home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Commodore 64 Scene Diskmags Assortment
/
Playback_07_1992_-_de.d64
/
einsiedler
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
2KB
|
68 lines
10 rem einsiedlerspiel =========64
95 gosub1000:poke646,0:poke53281,1
100 printcl$c1$" das einsiedlerspiel"
110 printc1$" zum setzen faehrst du mit den cursor-
120 [153]c1$" steuertasten unter den zu setzenden
130 printc1$" stein, drueckst space und faehrst dann
140 [153]c1$" unter die zielposition und drueckst
150 printc1$" erneut space."
160 printc1$" mit (*) kannst du das spiel beenden."
170 printc1$c1$" waehle eine der 2 moeglichkeiten
180 [153]c1$" 1 = loesung
190 printc1$" 2 = volles feld
200 [161]a$:a[178][197](a$):[139]a[179]1[176]a[177]2[167]200
210 [145]a[137]220,220
220 [153]cl$c1$" das einsiedlerspiel
230 print:print"*****************************************
240 [153]r1$" (NULL) (NULL) (NULL)
245 printr1$" [209] [209] [209]
250 [153]r1$" (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL)
260 printr1$" [209] [209] [209] [215] [209] [209] [209]
270 [153]r1$" (NULL) (NULL) (NULL) (NULL) (NULL) (NULL) (NULL)
275 printr1$" [209] [209] [209]
280 [153]r1$" (NULL) (NULL) (NULL)
285 printc4$"**
290 [153]c4$"**
295 printc4$"*****************************************"
300 x=1403:pokex,30:pokex+54272,0:za=32
310 ifa=1then340
320 geta$:ifa$="*"then540
330 gosub410:goto320
340 readx$:i=1
350 w=val(mid$(x$,i,1)):a$=mid$(sc$,w,1):ifa$=kl$then540
360 fort=1to 00:next
370 gosub410:i=i+1:ifi<=len(x$)then350
380 goto340
410 ifa$<>" "then480
420 ify<>0then450
430 ifpeek(x-40)<>81thenreturn
440 y=x-40:pokey,42:return
450 ifpeek(x-40)<>87or(abs(y-x+40)<>4andabs(y-x+40)<>160)thenpokey,81:y=0:return
460 ifpeek((y-x+40)/2+x-40)<>81thenpokey,81:y=0:return
470 pokex-40,81:poke(y-x+40)/2+x-40,87:pokey,87:y=0:z=z+1:return
480 ifa$=c3$andpeek(x-80)=32thenpokex,32:x=x-80
490 ifa$=c1$andpeek(x+80)=32thenpokex,32:x=x+80
500 ifa$=c4$andpeek(x-2)=32thenpokex,32:x=x-2
510 ifa$=c2$andpeek(x+2)=32thenpokex,32:x=x+2
520 pokex,30:pokex+54272,0
530 return
540 ifa<>1then560
545 poke782,1:poke781,23:sys65520:print"der computer hat dir jetzt die loesung"
550 print" gezeigt. nun bist du an der reihe.":goto590
560 poke782,7:poke781,23:sys65520:print"du hast":printz"steine geschlagen."
570 ifza-z>1thenprint" es sind noch"za-z"steine uebrig.":goto590
580 print" das ist optimal !!!
590 [161]a$:[139]a$[178]""[167]590
600 [138]
610 [131]"51153445225433511533225445111533535115254452111533"
620 [131]"53445225511534452255115344522533222544521153351122"
630 [131]"54453345225254453511515335122544535115452254115335"
640 [131]"254455445221153353511541533545225153356"
1000 c1$[178][199](017):c2$[178][199](029)
1010 c3$[178][199](145):c4$[178][199](157)
1020 kl$[178][199](064):cl$[178][199](147)
1030 sc$[178]c1$[170]c2$[170]c3$[170]c4$[170]" "[170]kl$
1040 r1$[178]c4$[170]"**"[170]c1$[170]c4$[170]c4$[170]"**"
2000 [142]
3300 [143] programmende=============