Skip to content

Calculates the probability of hitting/standing in a modified blackjack game

Notifications You must be signed in to change notification settings

jon-zhang/modified-blackjack-probability-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

modified-blackjack-probability-calculator

The rules of modified blackjack are as follows:

Each roll the better must hit or stay (H/S) The goal is for both players to hit as close to 100 as possible If the host rolls higher than the better and doesn't bust over 100, the host wins If the player hits the highest number and host busts, the host pays x2 of the bet Players go first and host must try to beat the players highest rolls.

The python file simulates 10,000 games at each of 1-100 as the player score. The simulation then generates a random number for the host and adheres to the game(keeps hitting until higher than player). The output is the win ratio of the player at each of 1-100 and generates a graph to show what numbers the player has the highest chance of winning at. The range seems to be around 54-62.

About

Calculates the probability of hitting/standing in a modified blackjack game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages