this post was submitted on 18 Aug 2023
596 points (96.1% liked)

Programmer Humor

20429 readers
200 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

founded 2 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 2 years ago (1 children)

I hope I'm not being stupid right now, but is that the actual algorithm for counting cards in blackjack?

[–] [email protected] 2 points 2 years ago* (last edited 2 years ago)

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.