This is a simple blackjack simulator, where you can simulate the game to test different game strategies.
I also created a simple agent that uses the policy iteration algorithm to find the ideal policy.
blackjack.py
It has the blackjack function that can be used to evaluate different strategies. It also has a function (five_player_blackjack) that can be used to simulate a table with five players.
agents.py
It has the Q_Agent class that uses the Policy Iteration Algorithm to find the ideal policy.
main.py
There is an example of a Blackjack game for one and five players.