Game of Blackjack is played with Bot against dealer, the bot starts with $100 dollars (constant), and plays as many rounds until it reaches desired amount of money (specified by user) Each round of the game will be iterated and displayed with a few statistics of the game.
Deck of 52 Cards: Jacks, Queens and Kings are 10s and Ace are either 1 or 11
Bot betting Values: 25% - 35% - 45%
Example:
Enter Value of earnings to end game: (must be greater than 100)
>>200
Blackjack round: 1
Bot bets: $25
Your hand: 10 and 8
Dealers Hand: 6
BOT Decision: STAND
Dealer Hand: 6 and 8
BOT: 18 – Dealer: 14
BOT WINS
----------------------------------------------------
Game Summary:
Wins: 1 - Loss: 0 – Win Ratio: %100 - Money: $125.00
----------------------------------------------------
Blackjack round: 2
Bot bets: $43.75
Your hand: 5 and 4
Dealers Hand: 10
BOT Decision: HIT
Your Hand: 5, 3 and 9
BOT Decision: STAND
Dealer Hand: 10 and 6
BOT: 17 – Dealer: 16
BOT WINS
----------------------------------------------------
Game Summary:
Wins: 2 - Loss: 0 – Win Ratio: %100 - Money: $168.75
----------------------------------------------------
Blackjack round: 3
Bot bets: $59.10
Your hand: ACE and 9
Dealers Hand: KING
BOT Decision: STAND
Dealer Hand: KING and 7
BOT: 20 – Dealer: 17
BOT WINS
----------------------------------------------------
Game Summary:
Wins: 3 - Loss: 0 – Win Ratio: %100 - Money: $227.85
----------------------------------------------------
GAME OVER: Money Value entered has been reached
----------------------------------------------------
(if round is lost, the bed amount will be subtracted, rounds will keep going until entered value has been reached. The bot can bet different amounts depending if it has a lot of money or not so much) Bot betting Values: 25% - 35% - 45% if he bot has 50% more money than what it started with it can start betting higher percentage, and if it has 50% less money than what it started with it can start betting lower percentage.
Optimal strategy chart, splits can be ignored.
Black Jack Basic Strategy Card: see image.