home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tiger Disk 21
/
Tiger_Disk_021_19xx_Tiger-Crew-Disk_de_Side_C.d64
/
7.c64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
4KB
|
110 lines
0 poke45,211:poke46,23:clr:j=rnd(-ti):poke53281,0:poke53280,14:print"[155]"chr$(142)
1 m=1000:dima(15),b(3):poke36879,45:ve=36878:t1=ve-4:t3=ve-2:pokeve,15:goto9000
2 poke198,0:wait198,1:getr$:r=val(r$):return
5 a=int(rnd(8)*6)+int(rnd(8)*6)+2:return
7 gosub2:ifr$="y"orr$="n"thenreturn
8 goto7
100 print"[147] =========== e[146]ven or o[146]dd? ===========
107 [129]q[178]0[164]15:a(q)[178].5:[130]:[129]q[178]0[164]3:b(q)[178][181](2[172][187](8)):[130]:c[178].8:d[178].3:e[178].
110 [129]f[178]0[164]4:[153]"";:[129]f1[178]0[164]9:g[178]b(3)[172]8[170]b(2)[172]4[170]b(1)[172]2[170]b(0):h[178]a(g):i[178]h
115 [139]i[178].5[167]i[178][187](8):[137]130
120 i[178]i[172]d[171](1[171]d)[172](i[177].5)
130 k[178].:j[178][171](i[179][187](8))
140 [141]2:[139]z[167]z[178].:[139]r$[178]"m"[167]9020
141 [139]r$[178]" "[167]r$[178][202]("eo",[187](8)[172]2[170]1,1):[137]150
145 [139]r$[179][177]"o"[175]r$[179][177]"e"[167]140
150 [153]:[153][163]f[172]8[170]2)r$;:[139]r$[178]"e"[167]k[178]1
160 e[178]e[170]1:[139]j[171]k[167]e[178]e[171]1:[153]"*";:v%[178]30:[141]10000
170 [153]:b(0)[178]b(2):b(1)[178]b(3):b(2)[178]k:b(3)[178]j:a(g)[178]c[172]a(g)[170](1[171]c)[172]b(2):[130]:[153]:[130]
180 [153]"loadi guessed"50[171]e"out of 50":wl[178]100[170]200[172](e[179]25)
190 [139]wl[179].[167][141]2000:[137]200
195 [141]2100
200 [141]7000:z[178]1:[137]100
400 c[178]0:f[178][171]25:[141]5:e[178]a
405 c[178]c[170]1:[153]"load *** d i c e ***"
410 [153]" first roll="e
411 [153]"":[139]c[179]2[167]414
412 [141]5:[153]"on roll #"c"="a
413 [139]e[178]a[167][153]" ***you lose***":[141]2000:m[178]m[171]25:[137]440
414 f[178]f[170]a:[153]" running total = "f
415 [153]" roll again?";:[141]7:v%[178]20:[141]10000:[139]r$[178]"y"[167]405
430 [153]" no":m[178]m[170]f
440 [139]m[179].[167]wl[178]0:[137]7020
442 [153]"":[129]j[178]1[164]9:[153]"":[130]:[153]" you now have $"m:[129]j[178]1[164]500:[130]
445 [143]
450 [153]" play again?":[141]7:[139]r$[178]"n"[167]9020
455 [137]400
700 [153]"load *** high numbers ***":[153][163]24)"bet:wait
705 b=.:wl=1
710 fora=0to9:a(a)=int(rnd(9)*900)+100:ifa(a)>bthenb=a(a):c=a
720 next
730 fora=0to8:printa(a)tab(5)"d[146]ouble/s[146]kip/b[146]et";
740 gosub2:v%=20:gosub10000:ifzthenz=0:ifr$="m"then9020
745 ifr$="b"thenprint:print:wl=-wl-2*(a=c)*wl:d=a+1:a=8:next:goto800
750 ifr$="d"thenwl=2*wl:goto760
755 ifr$<>"s"then740
760 wl$=str$(wl):printtab(28-len(wl$))wl$
770 print:next:d=9:ifc-9thenwl=-wl
800 fora=dto9:printa(a):ifa=9thennext:goto810
805 print:next
810 print"":fora=0toc:print:print:next:print">":gosub12000
812 ifwl<.thengosub2000:goto820
814 gosub2100
820 forf=1to1500:next:print"[147]":gosub7000:z=1:goto700
901 print"time's up!":poke198,0
910 print"ready for another round?":gosub2:run
2000 poket1,150:forxx=1to900:next:poket1,0:return
2100 foryy=220to235step5:poket3,yy:forxx=1to80:next:next
2110 forxx=1to250:next:poket3,0:return
3000 return
4000 print"[147] **even-odd**"
4005 print"i will calculate your next entry
4010 [153]"based on an analysis of your previous
4020 print"entries. if you outwit me 50% of the
4030 [153]"time, you win $100. otherwise, you
4040 print"will lose $100.
4100 [153][163]6)" ***dice***"
4105 [153]"roll the dice as long as you can without";
4110 [153]"matching your first roll.
4120 print"if you match, you lose. otherwise, you keep the points you rolled.
4130 [153]"it costs $25.00 to get in on the action each time.
4199 gosub4900
4200 print" ***high numbers***"
4205 print"i will pick ten random numbers between
4210 [153]"100 and 999 and i will show them to you
4220 print"one at a time. you start off with a onedollar bet.
4230 [153]"after each number you may:
4240 print" 1. bet that it is the largest of the ten.
4250 [153]" 2. double your bet.
4260 print" 3. skip to the next number.
4900 [153]"(hit any key for more)":[141]2:[153]"load":[142]
6000 [153]"load":x[178]12
6100 [153][163]x)"for(NULL) (NULL)"
6110 [153][163]x)" waitsys (NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL) for "
6120 [153][163]x)" waitclr victory casino for "
6130 [153][163]x)" waitsys usrusrusrusrusrusrusrusrusrusrusrusrusrusr for "
6140 [153][163]x)"for(NULL) (NULL)"
6200 [153]"print# copyright (c) 1982 bruce robinson"
6210 x[178]13:[153][163]x)"victory software":[153][163]x)"paoli, pa 19301"
6999 x[178]0:[142]
7000 q[178][187]([171]ti):[139]wl[179]0[167][153]"you lose $";[171]wl:[137]7020
7010 [153]"you win $"wl"!"
7020 m[178]m[170]wl:[153]"you now ";:[139]m[179].[167][153]"owe";:[137]7025
7021 [153]"have";
7025 [153]" $"[182](m)
7029 [139]m[177]0[167][153]"hit <m> for menu at beginning of game.":[129]q[178]1[164]4e3:[130]:[142]
7030 [153]"cough it up by tuesday or al and the
7040 print"boys are gonna pay you a little visit!!!
7050 [137]910
9000 [141]6000
9010 [153]"welcome to the victory casino!
9015 ti$="200440":goto9021
9020 print"[147]":ifpeek(657)=0thennew:
9021 q=rnd(-ti):print" you now have $"m
9050 print"which game would you like to play?":print" 1) even-odd":print" 2) dice
9055 [153]" 3) high numbers":[153]" i) instructions";
9060 [141]2:[153]"load":z[178]1:[145]r[137]100,400,700:[141]4000:[137]9020
10000 vo[178]54296:[151]vo,15:a8[178]54272:[151]a8,40:[151]a8[170]1,40:[151]a8[170]5,15:[151]a8[170]6,240
10002 [151]a8[170]4,17:[129]em[178]1[164]v%:[130]:[151]a8[170]4,16:[151]vo,0:[142]
12000 v%[178]100:[129]a[178]1[164]4:[141]10000:[129]aa[178]1[164]100:[130]:[130]:[142]