this post was submitted on 18 Aug 2023
603 points (96.2% liked)

Programmer Humor

19814 readers
144 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
[–] danhab99 3 points 1 year 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 1 year ago* (last edited 1 year 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.