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.
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