blackjack-simulator icon indicating copy to clipboard operation
blackjack-simulator copied to clipboard

🃏 Realistic blackjack simulator (practice card counting using Hi-Lo and calculate EV for any table conditions)

Results 12 blackjack-simulator issues
Sort by recently updated
recently updated
newest added

Currently the house edge is calculated by looking at amount wagered vs amount earned which of course will change based on the player decisions. One option here is to first...

We currently use `amountEarned / handsPlayed` to calculate expectation per hand and use bankroll variance to estimate variance per hand. This works well when playing only one hand the entire...

The error seems to happen when simulating 3 spots played simultaneously with a large number of hands: ``` ./bin/cli.js simulate --hands 1000000000 --player-bet-spread '$200,$200,$400,$600' --player-wong-out-true-count 2 --allow-late-surrender true --hit-soft17 false...

There should be an error when trying to use an invalid flag via the command line.

Are there situations where we lose precision due to large integers? Looks like the max safe integer is [9,007,199,254,740,991](https://stackoverflow.com/a/307200). One possible area we might run into trouble is the bankroll...

The current output for standard deviation seems to be the standard deviation for earnings per hand. This empirical number doesn't seem to line up with the equations. For example: ```sh...

Currently we're able to manually define the bet spread or use a simple exponential spread (e.g. TC 1 $10, TC 2 $20, TC 3 $40 etc.). It would be nice...

Similar to CVCX, we can precompute the simulation results with several billion hands. It can be done with every permutation of table conditions as well as some preset table minimums...

It's too dynamic for AssemblyScript and isn't really needed now that we advance the game with a DFA. We can just get a full tree of game state after every...

Currently the simulator accepts a bankroll. It would be nice if it could instead accept a desired risk of ruin and automatically compute a required bankroll for the simulation. Also,...