Digital version of a blackjack game featuring a single player vs AI
In order to run the program go into the src folder then compile and run the Driver file.
cd src
javac Driver.java
java Driver
The object of blackjack is to beat the dealer. To beat the dealer the player must first not bust (go over 21) and second either outscore the dealer or have the dealer bust. Here are the full rules of the game.
- Stand: Player stands pat with his cards.
- Hit: Player draws another card (and more if he wishes). If this card causes the player's total points to exceed 21 (known as "breaking" or "busting") then he loses.
- Reset: Starts a new game while keeping track of the score (Player, AI, Draw)
Some of the rules were derived from: