(11C) Blackjack - 21
|
07-08-2019, 05:22 AM
(This post was last modified: 07-21-2019 03:05 AM by Gamo.)
Post: #1
|
|||
|
|||
(11C) Blackjack - 21
Blackjack or 21 card game is adapted and added more features
from the HP-19C Games Solutions Handbook. This is not a perfect program anyone got better idea go ahead and make any suggestion is very welcome. ------------------------------------ Procedure: USER mode [A] Player [B] Dealer // Run and make decision automatically [C] Ace // Player select to use 11 instead of 1 [D] Bankroll [E] Bet 1. Input specific Bankroll [D] 2. Input your bet [E] 3. Take Cards [A] display first card amount [R/S] display second card added from 1st card continue [R/S] until the highest possible you like. If you win your bankroll is added and display as negative sign -xxx. 4. [B] Dealer play automatically (if Dealer win you bankroll is deducted) To continue: enter Bet [E] ---> [A] --->[R/S]..... ---->[B] display Bankroll remaining amount as negative value. ----------------------------------------------- Remark: Only the player have a choice to pick Ace as 1 or 11 when display show 1 and you want 11 simply press [C] If you already got 10 next card is Ace press [C] for 11 total is 21 If you got Ace and any other but not 10 then keep on continue with [R/S] to your desire amount then [B] Even if player done with lower amount for example: 16 if Dealer draw to 16 the dealer will not continue but stop and get a tie game instead. Tie Game will shown short moment effect display 0.000000000 then Bankroll amount. ----------------------------------------------- Program: Code:
EDIT: [7/10/2019] Make changed to LBL 4 When both Player and Dealer got the same cards amount Dealer will make a Hit from 16 and below. 17 and above Dealer will call a "Tie Game" EDIT: [7/11/2019] On LBL A make change after X=Y from GTO 1 to RTN After this change when Player get 21 this will not automatically win and Player let the Dealer continue. If Dealer also get 21 then it is now a "Tie Game" EDIT: [7/21/2019] Make changed to LBL 4 Now card amount > 17 will call Tie Game Card amount < 18 will randomly call either Tie or Continue Added [X<>Y] under [LBL] 2 If you lose and like to see your card amount simply press [X<>Y] Gamo |
|||
07-23-2019, 01:11 PM
Post: #2
|
|||
|
|||
RE: (11C) Blackjack - 21 | |||
02-13-2020, 10:22 PM
(This post was last modified: 02-13-2020 10:40 PM by Rogier.)
Post: #3
|
|||
|
|||
RE: (11C) Blackjack - 21
Hi Gamo,
I stumbled upon your Blackjack program today. Nice work. You asked if anyone else has ideas. Well here's my attempt at a Blackjack program: - I use 2 decks of cards. - Cards drawn are administered in R0 through R6. - The integer part of R0 is the total number of cards drawn. - For each odd card 0,1 is added, for each even card 1 is added to the appropriate register. Either way 1 is added to R0 (lines 43-50). - Once the count for a card reaches 0,8 or 8 no more cards of that value can be drawn and the program tries again (lines 33-47). - The program takes 104 new cards if more than 90 cards have been drawn or randomly when a random# >0,9 is drawn (lines 5-15) - Aces are counted as 1 or 11 automatically (lbl 2) - The card administration cost me so many lines and registers that I couldn't fit in a scoring routine USE: B: Starts a new game. (11C will show 0,9 when new cards are taken) 11C shows: first card 11C > first card player > player total after 2 cards. A: Take card > total with additional card (fix9 = Ace counted as 1) C: Pass. 11C plays. The calculator will draw cards until total > 16 Final result: aa,bb (Score 11C, Score Player) Other labels: 1: 11C takes Card 2: Process Ace 3: Check whether 11C must pass Flags: F 0: Set > no Ace F 1: Set > odd Card Registers: R I: R-nr last card (+1) R 0: Cards, Aces R 1: 2, 3 R 2: 4, 5 R 3: 6, 7 R 4: 8, 9 R 5: 10, B R 6: V, H R 7: Active player score R 8: 1st Card 11C. After pressing C, contents of R7 and R8 are swapped (line 81-85) R 9: Last card drawn HP 33E, HP 11C, HP 48 SX, HP 35S |
|||
02-14-2020, 05:51 AM
(This post was last modified: 02-14-2020 12:54 PM by Gamo.)
Post: #4
|
|||
|
|||
RE: (11C) Blackjack - 21
Rogier
Thanks for trying my Blackjack game. This program was adapted from HP-19C Games Solutions Handbook. It was modify so that it is easier to play and also more fun to program it to the HP-11C since it got the Ran# function and 5 labels. With this program: It is kind of hard to beat the "Automated Dealer" I can't call this Dealer as an "AI" because it doesn't learn from the pass result but simply make Random Decisions based on set amount of range that be specify in program. I test this by set the bankroll at 1000 and keep betting either small or large amount of the bet. With about 18 or less games my bankroll is empty. I'll try you program later and see how it is going and again thanks for your interest on this game. Remark: My Blackjack Card Game version doesn't show the Dealer First Card instead Player first start to draw cards until satify then the Dealer take turn. Gamo |
|||
02-15-2020, 06:10 AM
Post: #5
|
|||
|
|||
RE: (11C) Blackjack - 21
Rogier
I have try your game and found that it is really good. Good idea to let the player see the first card from the Dealer. The result display shown as DD.PP (Dealer and Player Score) that is very nice. When I have time I might modify my version to let Player see the Dealer's first card. Thanks Gamo |
|||
02-16-2020, 08:55 PM
(This post was last modified: 02-16-2020 09:26 PM by Rogier.)
Post: #6
|
|||
|
|||
RE: (11C) Blackjack - 21
Your program triggered me to review my own. As a result I now have a version with a basic scoring routine
Code:
HP 33E, HP 11C, HP 48 SX, HP 35S |
|||
02-16-2020, 09:25 PM
(This post was last modified: 02-16-2020 09:42 PM by Rogier.)
Post: #7
|
|||
|
|||
RE: (11C) Blackjack - 21
It appears I can only change my code, not the accompanying text. So here is the documentation in a separate note.
In order to incorporate a scoring routine I moved the last card drawn from R9 to R,0. Then added Lbl 4, which saves R9 if registers are cleared when 11C takes new cards. This enabled me to fit in a basic scoring system with 1 line to spare (if you delete Lbl E). Lbl 5 is inserted to handle player totals >21, F0 is used to determine if 1 or -1 should be subtracted from R9. I inserted "Lbl E" in the listing for readability and testing of the scoring routine only. Scoring is as follows:
Use of A and B is as before. C now shows the total after each card 11C draws [Pse] and finally shows your credit balance. If you want to review the totals: R7: 11C card score R8: Player card score R9: Credits If you prefer the old system just delete all lines beyond Lbl E (from 107) and replace them by: 107 Rcl 8 108 EEX 109 2 110 / 111 + (112 Rtn) HP 33E, HP 11C, HP 48 SX, HP 35S |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)