As noted previously, a player has two strategies: one for betting and one for playing their hand. Each Player instance has a sequence of interactions with a larger simulation engine. We'll call the larger engine the Table class.
The Table class requires the following sequence of events by the Player instances:
- The player must place an initial, or ante, bet based on the betting strategy.
- The player will then receive a hand of cards.
- If the hand is splittable, the player must decide whether to split it or not based on their game strategy. This can create additional Hand instances. In some casinos, the additional hands are also splittable.
- For each Hand instance, the player must decide to hit, double, or stand based on their game strategy.
- The player will then receive payouts, and they must update their betting strategy based on their wins...