The table then needs to reset using the Table.reset() method to play another hand.And then you call ayRound() to play 1 round of BlackJack.Create a Table object (which creates a dealer and shoe with 8 decks by default).To simulate a round of BlackJack, you simply: Generally, a player has 1 hand unless there are splits, in which case player can have multiple hands. The Shoe can have anywhere from 1 to 10 Decks of cards. Surrender is allowed and the loss is 1/2.
Player can double-down any first 2 cards.To keep the code relatively simple, a lot of the rules are hard-coded. A BlackJack simulator to play any number of hands using different strategies The Rules