vintage-basic.net
August 21, 2019, 01:51:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Original AceyDucey copy from atariarchives.  (Read 10136 times)
E.K.Virtanen
Newbie
*
Posts: 11


312576736 lurah@luukku.com
View Profile WWW Email
« on: September 01, 2010, 04:16:18 AM »

Code:
10 PRINT TAB(26);"ACEY DUCEY CARD GAME"
20 PRINT TAB(15);"CREATIVE COMPUTING MORRISTOWN, NEW JERSEY"
21 PRINT "VINTAGE-BASIC PORT BY E.K.VIRTANEN http://www.basicprogramming.org/ekv/"
22 PRINT "2010, PUBLIC DOMAIN"
23 PRINT
30 PRINT "ACEY-DUCEY IS PLAYED IN THE FOLLOWING MANNER "
40 PRINT "THE DEALER (CPU) DEALS TWO CARDS FACE UP"
50 PRINT "YOU HAVE AN OPTION TO BET OR NOT TO BET DEPENDING"
60 PRINT "ON WHETHER OR NOR YOU FEEL THE CARD WILL HAVE"
70 PRINT "A VALUE BETWEEN THE FIRST TWO."
80 PRINT "IF YOU DO NOT WANT TO BET, INPUT A '0'"
100 N = 100
110 Q = 100
120 PRINT "YOU NOW HAVE ";Q;" DOLLARS"
130 PRINT
140 GOTO 260
210 Q = Q + M
220 GOTO 120
240 Q = Q - M
250 GOTO 120
260 PRINT "HERE ARE YOUR NEXT TWO CARDS "
270 A = INT(14*RND(1))+2
280 IF A < 2 THEN 270
290 IF A > 14 THEN 270
300 B = INT(14*RND(1)) + 2
310 IF B < 2 THEN 300
320 IF B > 14 THEN 300
330 IF A >= B THEN 270
350 IF A < 11 THEN 400
360 IF A = 11 THEN 420
370 IF A = 12 THEN 440
380 IF A = 13 THEN 460
390 IF A = 14 THEN 480
400 PRINT A
410 GOTO 500
420 PRINT "JACK"
430 GOTO 500
440 PRINT "QUEEN"
450 GOTO 500
460 PRINT "KING"
470 GOTO 500
480 PRINT "ACE"
500 IF B < 11 THEN 550
510 IF B = 11 THEN 570
520 IF B = 12 THEN 590
530 IF B = 13 THEN 610
540 IF B = 14 THEN 630
550 PRINT B
560 GOTO 650
570 PRINT "JACK"
580 GOTO 650
590 PRINT "QUEEN"
600 GOTO 650
610 PRINT "KING"
620 GOTO 650
630 PRINT "ACE"
640 PRINT
650 PRINT
660 INPUT "WHAT IS YOUR BET";M
670 IF M<>0 THEN 680
675 PRINT "CHICKEN!!"
676 PRINT
677 GOTO 260
680 IF M <=Q THEN 730
690 PRINT "SORRY, MY FRIEND BUT YOU BET TOO MUCH"
700 PRINT "YOU HAVE ONLY ";Q;" DOLLARS TO BET"
710 GOTO 650
730 C = INT(14*RND(1)) + 2
740 IF C < 2 THEN 740
750 IF C > 14 THEN 730
760 IF C < 11 THEN 810
770 IF C = 11 THEN 830
780 IF C = 12 THEN 850
790 IF C = 13 THEN 870
800 IF C = 14 THEN 890
810 PRINT C
820 GOTO 910
830 PRINT "JACK"
840 GOTO 910
850 PRINT "QUEEN"
860 GOTO 910
870 PRINT "KING"
880 GOTO 910
890 PRINT "ACE"
900 PRINT
910 IF C > A THEN 930
920 GOTO 970
930 IF C >= B THEN 970
950 PRINT "YOU WIN!!!"
960 GOTO 210
970 PRINT "SORRY, YOU LOSE"
980 IF M < Q THEN 240
990 PRINT
1000 PRINT
1010 PRINT "SORRY, FRIEND BUT YOU BLEW YOUR WAD"
1020 INPUT "TRY AGAIN (YES OR NO)";A$
1030 IF A$ = "YES" THEN 110
1040 PRINT "OK, HOPE YOU HAD FUN"
1050 END
Logged

E.K.Virtanen
Newbie
*
Posts: 11


312576736 lurah@luukku.com
View Profile WWW Email
« Reply #1 on: September 01, 2010, 04:23:07 AM »

Oh crab  Grin There are links to text-files too...darn me  Grin
Logged

E.K.Virtanen
Newbie
*
Posts: 11


312576736 lurah@luukku.com
View Profile WWW Email
« Reply #2 on: September 01, 2010, 04:57:16 AM »

How to drop over 50% of lines in 4 minutes  Grin
http://www.basicprogramming.org/ekv/codes/vintage-basic/ACEYDUCEY_ME.BAS
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.12 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!