Home » Recent acquisitions » Commodore_16 » tape009a_c16_commodore_16_games_pack_1.wav » blackjack
blackjack
This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.
Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.
Tape/disk: | Home » Recent acquisitions » Commodore_16 » tape009a_c16_commodore_16_games_pack_1.wav |
Filename: | blackjack |
Read OK: | ✔ |
File size: | 0BC9 bytes |
Load address: | 1001 |
Exec address: | 0000 |
File contents
10 BL$="▚▚▚▚▚▚<cursor down><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>":CL$=" <cursor down><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>":CN$="<home><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down>" 20 CA$="<cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right><cursor right>":NL$=" " 30 C$="🭸🭸🭸🭸🭸🭸":D$="🭲<cursor down><cursor left>🭲<cursor down><cursor left>🭲<cursor down><cursor left>🭲<cursor down><cursor left>🭲<cursor down><cursor left>🭲<cursor down><cursor left>🭲<cursor down><cursor left>🭲":CR=500:DC$="<cursor down><cursor down>" 40 VOL8:DIMSS$(3):DIMPC(9):DIMCC(9) 50 DIMCD$(12):DIMCN%(12):FORI=0TO12:READCD$(I):CD$(I)=CD$(I)+" ":CN%(I)=15:NEXTI 60 DATAA,2,3,4,5,6,7,8,9,10,J,Q,K 70 CD$(9)="10":SS$(0)="<red>♥":SS$(1)="<red>♦":SS$(2)="<black>♣":SS$(3)="<black>♠" 80 PRINT"<clr><red> BLACKJACK" 90 PRINT"<pink><cursor down><cursor down><cursor right>C<cursor down><cursor left>O<cursor down><cursor left>M<cursor down><cursor left>P<cursor down><cursor left>U<cursor down><cursor left>T<cursor down><cursor left>E<cursor down><cursor left>R<cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor down><cursor left><blue>Y<cursor down><cursor left> <cursor down><cursor left>O<cursor down><cursor left> <cursor down><cursor left>U" 100 L=0:CX$="<cursor right><cursor right><cursor right><cursor right>":SQ=0:B=0:CN=-1:PN=-1:DB=0:S=0 110 CY$=CN$+DC$:GOSUB320:P1$=DT$:PS=X:PN=0:PC(PN)=Y:GOSUB420 120 CY$=DC$:GOSUB320:C1$=DT$:CS1=X:CN=0:CC(CN)=Y 130 GOSUB560:CY$=CN$+DC$:DT$=P1$:X=PS:GOSUB380:RC$=CX$:RP$=CX$ 140 PRINTCN$;CA$;"<light blue>ENTER BET<black>";:INPUTB 150 PRINTCN$;CA$;NL$ 160 IFB<1ORB>CRTHEN140 170 GOSUB550 180 CY$=CN$+DC$:GOSUB320:PN=PN+1:PC(PN)=Y:P1$=DT$:PS=X 190 CY$=DC$:CX$=RC$:GOSUB320:C2$=DT$:CS2=X:CN=CN+1:CC(CN)=Y 200 CY$=CN$+DC$:CX$=RP$:DT$=P1$:X=PS:GOSUB380:GOSUB420 210 IFPV=21THEN290 220 PRINTCN$;CA$;"<brown>STICK OR TWIST"; 230 GETA$:IFA$=""THEN230 240 IFA$<>"S"ANDA$<>"T"ANDA$<>"D"THENPRINTCN$;CA$;NL$:SOUND1,350,5:GOTO210 250 IFA$="T"THENGOSUB320:PN=PN+1:PC(PN)=Y:GOSUB380:GOSUB420:GOSUB600:GOTO210 260 IFA$<>"D"ORDB>0ORB>CRTHEN280 270 GOSUB550:DB=1:GOTO210 280 IFA$<>"S"ORPV<12THEN210 290 S=1:GOSUB570:GOSUB480 300 GOSUB600 310 GOSUB320:CN=CN+1:CC(CN)=Y:GOSUB380:GOSUB480:GOTO300 320 SOUND3,700,5:Y=INT(RND(0)*13):IFCN%(Y)=0THEN320 330 DT$=CD$(Y):X=INT(RND(0)*4) 340 IF(CN%(Y)AND(2^X))=0THEN320 350 CN%(Y)=CN%(Y)-2^X 360 PRINT"<home><black>";CY$;CX$;"╭";C$;"╮<cursor down><cursor left>";D$;"<home>";CY$;CX$;"<cursor down>";D$;"<cursor down><cursor left>╰";C$;"╯"; 370 PRINT"<home>";CY$;CX$;"<cursor down><cursor right>";BL$;BL$;BL$;BL$;BL$;BL$;BL$;BL$;:FORI=1TO100:NEXT:RETURN 380 CC$=LEFT$(SS$(X),1) 390 FORI=1TO500:NEXT:PRINT"<home>";CY$;CX$;"<cursor down><cursor right>";CC$;DT$;" <cursor down><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>";SS$(X);" <cursor down><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left>"; 400 PRINTCL$;CL$;CL$;CL$;CL$;CL$;:CX$=CX$+"<cursor right><cursor right><cursor right>" 410 SOUND1,1000,3:FORI=1TO500:NEXT:RETURN 420 PV=0:AC=0:FORI=0TOPN:PV=PV+PC(I)+1:IFPC(I)=0THENPV=PV+10:AC=AC+1 430 IFPC(I)>9THENPV=PV-PC(I)+9 440 NEXT 450 IFPV>21ANDAC>0THENPV=PV-10:AC=AC-1:GOTO450 460 IFPV>21THENL=1 470 RETURN 480 IFCN<0THENRETURN 490 CV=0:AC=0:FORI=0TOCN:CV=CV+CC(I)+1:IFCC(I)=0THENCV=CV+10:AC=AC+1 500 IFCC(I)>9THENCV=CV-CC(I)+9 510 NEXT 520 IFCV>21ANDAC>0THENCV=CV-10:AC=AC-1:GOTO520 530 IFCV>21THENL=-1 540 RETURN 550 SQ=SQ+B:PRINTCN$;"<orange><cursor down><cursor right>STAKE £ <cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><medium gray>";SQ:CR=CR-B 560 PRINTCN$;"<orange><cursor right>CREDIT £ <cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><cursor left><medium gray>";CR:RETURN 570 PRINT"<home><cursor down><cursor down><cursor down><cursor right><cursor right><cursor right><cursor right><cursor right>";C1$;"<cursor down><cursor left><cursor left>";SS$(CS1);" <cursor down><cursor left><cursor left> <cursor down><cursor left><cursor left> <cursor down><cursor left><cursor left> <cursor down><cursor left><cursor left> <cursor down><cursor left><cursor left> <cursor down><cursor left><cursor left> " 580 SOUND1,1000,3 590 CY$=DC$:CX$=RC$:DT$=C2$:X=CS1:GOSUB380:GOSUB480:RETURN 600 IFL=1THENPRINTCN$;CA$;"<red> YOU <flash on>BUSTED!<flash off> ":SOUND1,800,10:SOUND1,700,20:GOTO780 610 IFL<>-1THEN640 620 PRINTCN$;CA$;NL$;CN$;CA$;"<purple> I BUSTED":CR=CR+2*SQ 630 SOUND1,800,10:FORI=1TO50:NEXT:SOUND1,900,10:GOTO790 640 IFCV<>21ORCN<>1THEN670 650 PRINTCN$;CA$;"<black><flash on>I GOT BLACKJACK!<flash off>":SOUND1,900,20:IFPV=21ANDPN=1THENCR=CR-3*SQ 660 FORI=1TO10:SOUND1,800+10*I,10:NEXT:CR=CR-SQ:GOTO790 670 IFS=0THENRETURN 680 IFPV<>21ORPN<>1THEN710 690 PRINTCN$;CA$;"<black><flash on>YOU GOT BLACKJACK!<flash off>":CR=CR+3*SQ:GOSUB570 700 FORI=1TO30:SOUND1,300+10*I,10:SOUND2,420+10*I,10::FORJ=1TO50:NEXTJ:NEXTI:GOTO790 710 IFCV<17THENPRINTCN$;CA$;"<brown> I TWIST... ":RETURN 720 IFCV<PVTHEN740 730 PRINTCN$;CA$;"<medium gray> YOU LOSE...":SOUND1,700,10:FORI=1TO50:NEXT:SOUND1,600,25:GOTO790 740 PRINTCN$;CA$;"<green> I LOSE... " 750 FORI=1TO10:SOUND1,900+10*I,10:FORJ=1TO50:NEXTJ:SOUND1,1000-10*I,10:NEXT 760 CR=CR+2*SQ 770 GOTO790 780 GOSUB570 790 GOSUB560:PRINTCN$;"<cursor down><cursor right>";NL$;CN$;CA$;"<green><cursor down> ANOTHER GAME ?" 800 GETA$:IFA$=""THEN800 810 IFA$="N"THENEND 820 IFCR>0THEN80 830 PRINTCN$;CA$;"<light blue><flash on> BANKRUPT!<flash off>":END
B BL$�"������������":CL$�" ������":CN$�""