This Python script simulates a game of blackjack where a player can implement various strategies to play against a dealer. Although rather than using a digital deck, this simulator relies on random number generation to simulate card dealing, this will reduce validity slightly although it should not make enough of a difference to discount the effect of your strategy changes. One Of my first programs.
- Clone the repository or download the Python script.
- Run the script using a Python interpreter.
- Implement your desired strategy by modifying the
basic_strategy
function. - Adjust the number of games to simulate by changing the
num_games
variable. - Run the script and observe the results.
The basic_strategy
function defines a simple strategy for playing blackjack. Users can modify this function or create new ones to test different strategies.
After running the script, the simulation results will be displayed, showing the number of wins, losses, ties.
- Implement card splitting feature
- Handle card doubling (work in progress) If you would like me add other features create a request and I'll most likely add it If you have any issues please let me know
- Python 3.x
This project is licensed under the MIT License.