A simple terminal-based BlackJack card game written in Java. 1 player vs Dealer. Place bets, hit or stand, and try to beat the dealer without going over 21.
javac -d out src/com/blackjack/*.javajava -cp out com.blackjack.Main| Key | Action |
|---|---|
H |
Hit — draw a card |
S |
Stand — stop |
- You start with $500 chips
- Place a bet before each round
- Dealer's second card is hidden until your turn ends
- Dealer must hit until score is 17 or more
- Ace counts as 11, drops to 1 if you'd bust
- Over 21 = bust = automatic loss
- Closest to 21 wins. Tie = bet returned
- Game ends when you run out of chips or type no to quit