Simulate Multiple Rounds of Blackjack
simulation_blackjack.Rd
This function runs a simulation of a specified number of Blackjack rounds between an automated player and dealer.
The player uses a fixed strategy: they continue drawing cards until reaching a user-defined threshold score (between 12 and 21).
The dealer uses a smart strategy defined in dealer_turn_smart()
.
Value
A frequency table summarizing the outcomes of all simulated rounds. It is a table object with three possible values: "Win", "Lose", and "Push".
Details
In each simulated round:
A shuffled Blackjack shoe is created.
Two cards are dealt to both player and dealer.
The player automatically draws until reaching or exceeding the threshold.
The dealer plays according to a smart strategy.
The outcome is determined as "Win", "Lose", or "Push" (draw).