Post Reply 
(11C) Blackjack - 21
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:
  • Score is kept in R9,
  • Standard bet is 1 credit, no other bets possible,
  • Player starts out at 0 credits (so positive values in R9 mean you are winning, negative values mean you are losing),
  • If player has >21 points he loses (Lbl 5), if not:
  • If 11C has > 21 points player wins, if not:
  • If player points > 11C points player wins,
  • If both passed with the same points 11C wins.

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
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(11C) Blackjack - 21 - Gamo - 07-08-2019, 05:22 AM
RE: (11C) Blackjack - 21 - Gamo - 07-23-2019, 01:11 PM
RE: (11C) Blackjack - 21 - Rogier - 02-13-2020, 10:22 PM
RE: (11C) Blackjack - 21 - Gamo - 02-14-2020, 05:51 AM
RE: (11C) Blackjack - 21 - Gamo - 02-15-2020, 06:10 AM
RE: (11C) Blackjack - 21 - Rogier - 02-16-2020, 08:55 PM
RE: (11C) Blackjack - 21 - Rogier - 02-16-2020 09:25 PM



User(s) browsing this thread: 1 Guest(s)