Fine tuned.
It is a blackjack of a card game.
Please play.
■Rule
A is 1 or 11.
J, Q, K1 is 10.
·Goal
Blackjack keeps the value of the card on hand so that it does not exceed 21, and brings it close to 21,
If it is closer to 21 than the value of the dealer's card it will win.
· Game flow
First two cards are dealt to the user and dealer respectively.
At this time, if the value of the user's card is 21, the value of the dealer's card is not 21, the user will win.
Press the HIT button to deal a new card.
If the value of the user's card exceeds 21, the user loses.
Pressing the STAND button brings the dealer's card into a table.
If the value of the dealer's card is less than 17, the dealer draws the card until the card's value is 17 or more.
At this time, if the value of dealer's card exceeds 21, the user will win.
By comparing the dealer's card's value with the user's card's value, the closer to 21 is the winner.
When the user wins, the score is added according to the bet.