this post was submitted on 18 Aug 2023
597 points (96.1% liked)
Programmer Humor
19503 readers
1184 users here now
Welcome to Programmer Humor!
This is a place where you can post jokes, memes, humor, etc. related to programming!
For sharing awful code theres also Programming Horror.
Rules
- Keep content in english
- No advertisements
- Posts must be related to programming or programmer topics
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I hope I'm not being stupid right now, but is that the actual algorithm for counting cards in blackjack?
Half of it. This gives you the running count. You need to also keep track of “number of decks in shoe” -“number of cards dealt since last shuffle”/52 to tell you how many decks are left in the shoe, then divide the running count by the number of decks left to give you a true count.
True count higher than 1? Start increasing your bet accordingly.