jgayda / blackjack-simulator

A Python simulation for the game of Blackjack that analyzes the effect of strategy (bet spreads, card counting, basic strategy accuracy) on the players' bankrolls.
9 stars 4 forks source link

Non card-counters are making profits #2

Open vtfresh opened 8 months ago

vtfresh commented 8 months ago

Something is not right. Players without card counting should be losing money even with perfect basic strategy. Simulations with 75% accurate non-card counters are even making money. python blackjack.py -b 100000 -h 60000 Figure_1

cercata commented 2 months ago

Maybe default table conditions are unrealistic ? By default, all 4 are at true:

cercata commented 2 months ago

After this commit: https://github.com/jgayda/blackjack-simulator/commit/248ccbb8066ea5b2baf0ef1ba9a123799ef1d514

When you start the program, house rules have incorrect values, reverting the change, we get this again:

HOUSE RULES: Dealer stands on 17 | Double after split offered? True | Players can re-split aces? True Surrender offered? True

cercata commented 2 months ago

If the player has blackjack, it wins automatically:

# Check if the dealt hand is a blackjack and payout immediately if it is if dealtHand.isBlackjack(): self.handlePlayerBlackjack(player, dealtHand) else:

I think in casinos it's not like that

cercata commented 2 months ago

Also it allways allow double down after split on the code, no matter what's in the house rules ...