Skip to content

tejas-mathangi/BlackJack-Java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BlackJack

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.


How to Compile

javac -d out src/com/blackjack/*.java

How to Run

java -cp out com.blackjack.Main

Controls

Key Action
H Hit — draw a card
S Stand — stop

Rules

  • 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages