hmosousa / blackjack

A Blackjack simulator to test different strategies.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blackjack

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.

Files

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.

About

A Blackjack simulator to test different strategies.


Languages

Language:Python 100.0%