Practice coding in Java for KdG
The program is a simple game of blackjack. The rules are simple, you hit or stand and the dealer deals you according to your choice.
There is also an AI who will play automatically the best moves and tell you the statistic after running for x amount of games.
Add database connection to see wins and losses (PostgreSQL)
Rework some of the code to make it more readable and more object oriented
Add more comments
Add GUI (later)
- The player is asked how much they want to deposit.
- The player is asked how much they want to wager.
- The game starts and reveals the player's and dealer's cards.
- The player has the option to hit or stand.
- After the player is ready to stand, the dealer plays and draws till 17.
- Winner is calculated depending on the higher value hand or if a bust occured.
- Payout is offered depending on the win or loss and the balance is updated.