Notice: I wrote this out of pure fun to test a theory on a progressive betting strategy. I wrote the JS as quickly as possible to test the theory so it lacks some organization and JS best-practices that are important for maintenance - since I have no plans to maintain this.
Play blackjack in the console
Settings are easy to change, but currently:
Use quick function calls play()
, hit()
, and stay()
to play the game. Also the official way to restart is to refresh :)
Subscribe to the game's events and play with an automatic player. Currently the code has two example autoplayers. One will bet $5 no matter what, the other attempts a progressive betting strategy (and they both always lose eventually).
Feel free to program your own strategy.