#ThisWeeksFiddler, 20240524

ETA: Mine eyes have been opened by Tom Keith.

This week the question is: Can You Win at Non-Traditional Blackjack?

You’re playing a modified version of blackjack, where the deck consists of exactly 10 cards numbered 1 through 10. Unlike traditional blackjack, in which the ace can count as 1 or 11, the 1 here always has a value of 1.

You shuffle the deck so the order of the cards is completely random, after which you draw one card at a time. You keep drawing until the sum of your drawn cards is at least 21. If the sum is exactly 21, you win! But if the sum is greater than 21, you “bust,” or lose.

What are your chances of winning, that is, of drawing a sum that is exactly 21?

And for extra credit:

You’re playing the same modified version of blackjack again, but this time, whenever there’s even the slightest chance you could bust on the next card, you quit the round and start over. On average, how many rounds should you expect to start until you finally win?

Highlight to reveal solution:

My program solution gets a wildly different result. Sigh.

And for extra credit:

And again, my program says otherwise. Hmf.

Skriv en kommentar