(12C) Twenty-One (aka Blackjack)
|
08-09-2023, 01:41 PM
Post: #1
|
|||
|
|||
(12C) Twenty-One (aka Blackjack)
I've noticed that the programming capabilities of the HP12c are very similar to my first programmable calculator from the 1970's, the Commodore PR100. So I converted some small programs from that time.
One of my favorite calculator games back then was Twenty-One, which seems perfect for the HP12C. Code:
Twenty-One (aka Blackjack) Usage: <R/S> = hit/card, <1> <R/S> = stand/hold (bank draws) The display shows the new card value, blinks and shows the total of all cards. If the total is higher than 21, the player/bank loses. Player wins a round if he scores the same or more than the bank. Display of e.g. 3.2 means player won 3 rounds so far, bank 2. The game ends if bank loses 9 times, then you must start a new game. REG 0 - random REG 1 - player REG 2 - bank REG 3 - counter REG 5 - target My calculators - former: CBM PR100, HP41CV, HP11C, HP28S - current: HP48G, HP35S, Prime, DM41X, DM42, HP12C |
|||
08-09-2023, 07:51 PM
Post: #2
|
|||
|
|||
RE: (12C) Twenty-One (aka Blackjack)
This code is amazing.
|
|||
08-10-2023, 08:46 PM
Post: #3
|
|||
|
|||
RE: (12C) Twenty-One (aka Blackjack)
Who says a financial calculator can't be fun
My calculators - former: CBM PR100, HP41CV, HP11C, HP28S - current: HP48G, HP35S, Prime, DM41X, DM42, HP12C |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)