Skip to content

Simulate tons of "perfect" blackjack games and watch how the house still takes your money. 💵 🎲

License

Notifications You must be signed in to change notification settings

kodesun/BlackJack-Sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blackjack Basic Strategy Simulator ♠️ ♥️ ♣️ ♦️

Program designed to simulate a large number of blackjack games executing perfect basic strategy. Provides users with insight of how well basic strategy works in the long run and how several rules can change your odds at the blackjack table.

For example, in a blackjack table with 8 decks that get reshuffled once 70% of the cards have been dealt, where doubling is allowed, doubling after splitting is allowed, surrendering is allowed, with a bankroll of $1,000,000 and bets of $50, after 1,000,000 games the bankroll decreases to ~$750,000, showcasing that the house edge is around 0.5. Even though the rules of the table are favorable, one will mathematically still loose money in the long run.

Requirements

  • C++ Compiler
  • CMake

Installation

  • Clone this project and cd into its directory
  • mkdir build and cd build
  • cmake ..
  • make
  • ./BlackJack-Sim

Features

  • Able to simulate any number of decks.
  • Able to change rules of the table.
  • Able to edit/add basic strategy map directly.

References

  • Basic strategy used: here
  • House Edge Calculator: here

Instructions

  • Modify Global.hpp file with your own rules, compile, and run.

Feel free to use this however you like.

About

Simulate tons of "perfect" blackjack games and watch how the house still takes your money. 💵 🎲

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published