--- title: "Acey Ducey" type: "article" slug: "acey-ducey" url: "http://localhost/article/acey-ducey/" markdown_url: "http://localhost/article/acey-ducey.md" published_at: "2020-10-27T17:18:29+00:00" modified_at: "2026-06-21T23:27:14+00:00" featured_image: url: "http://localhost/wp-content/uploads/2022/04/20230809-041332.jpg" excerpt: "This simulation of the Acey Ducey card game. In the game, the dealer (the computer), deals two cards face up. You have an option to bet or not to bet depending whether or not you feel the next card dealt will have a value between the first two. Your initial money is set at $100.…" category: - name: "SYNC" slug: "sync" taxonomy: "category" url: "http://localhost/category/periodicals/sync/" post_tag: - name: "1981" slug: "year-1981" taxonomy: "post_tag" url: "http://localhost/tag/year-1981/" - name: "Full Text" slug: "fulltext" taxonomy: "post_tag" url: "http://localhost/tag/fulltext/" - name: "Type-in program" slug: "type-in-program" taxonomy: "post_tag" url: "http://localhost/tag/type-in-program/" - name: "ZX80" slug: "zx80" taxonomy: "post_tag" url: "http://localhost/tag/zx80/" model: - name: "Sinclair ZX80" slug: "zx80" taxonomy: "model" url: "http://localhost/model/zx80/" indiv: - name: "David Lubar" slug: "david-lubar" taxonomy: "indiv" url: "http://localhost/indiv/david-lubar/" publication: "Sync" publication_r: id: 10243 title: "SYNC" type: "periodical" url: "http://localhost/periodical/sync-magazine/" authors_r: - name: "David Lubar" slug: "david-lubar" taxonomy: "indiv" url: "http://localhost/indiv/david-lubar/" volume: "1" issue: "1" issues_articles: - id: 26635 title: "SYNC v1 n1" type: "issue" url: "http://localhost/issue/sync-v1-n1/" pages: "16" pubdate: "January/February 1981" archive_link: false volumeissue: "v1n1" --- This simulation of the Acey Ducey card game. In the game, the dealer (the computer), deals two cards face up. You have an option to bet or not to bet depending whether or not you feel the next card dealt will have a value between the first two. Your initial money is set at $100. The game keeps going until you lose all your money, or interrupt the program. The original program author was Bill Palmby of Prairie View, Illinois, and [David Lubar](http://localhost/indiv/david-lubar/) translated for the ZX-80. ``` 110 LET Q=100 115 RANDOMISE 120 PRINT "YOU HAVE ";Q;" DOLLARS" 140 GO TO 260 210 PRINT "HIT NEWLINE TO CONTINUE" 211 INPUT A$ 214 CLS 215 LET Q=Q+M 220 GO TO 120 260 PRINT "HERE ARE THE NEXT TWO CARDS" 270 LET A=RND(13)+1 2S0 LET B=RND(13)+1 300 IF A=B THEN GO TO 270 310 IF A<11 THEN PRINT A, 320 LET C=A 330 GO SUB 500 340 IF B<11 THEN PRINT B; 350 LET C=B 360 GO SUB 500 365 PRINT 370 PRINT "YOUR BET?" 380 INPUT M 390 IF NOT M=0 THEN GO TO 410 395 CLS 400 PRINT "CAUTIOUS" 405 GO TO 250 410 IF M=0 OR MA AND DB THEN GO TO 700 610 PRINT "SORRY, YOU LOSE" 620 IF M>Q OR M=Q THEN GO TO 900 630 LET M=-M 640 GO TO 210 700 PRINT "YOU WIN" 710 GO TO 210 900 PRINT "YOU ARE TAPPED OUT. PLAY AGAIN?" 910 INPUT A* 920 IF NOT CODE (A$)=62 THEN STOP 990 GO TO 110 ```