A simulation of 1000 blackjack games using basic strategy.
On the left side of the screen, you'll see the cards being played. On the right side of the screen, you'll see the winnings/losings of the strategy over time, with $10 bets each hand.
Heads up -- if you're on a mobile device, this spike may:
- Look terrible.
- Diminish your battery.
Notes
The technical bits in this spike include:
- A blackjack engine written in node, running in your browser thanks to browserify.
- A simple d3.js graph showing progress over each hand.
- A d3.js illustration of each hand. The difficult part here is getting web-ready SVG cards. Ended up converting these myself. (The 5 of spades still doesn't show up, and I still need to dedup the pip paths to bring the size down from 700kB.)