π A recreation of the classic blackjack card game, fully inside the terminal with local profiles to save your stats!
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β S ββ H ββ E ββ L ββ L ββ 2 ββ 1 β
β ββ ββ ββ ββ ββ ββ β
β β¦ ββ β₯ ββ β£ ββ β ββ β¦ ββ β₯ ββ β£ β // Terminal-Based Blackjack
β ββ ββ ββ ββ ββ ββ β
β S ββ H ββ E ββ L ββ L ββ 2 ββ 1 β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
This project was an interesting experiment that used only terminal output to display cards and allow users to play blackjack (also known as 21).
Users are prompted to enter their name as the key for their local profile. Stats including wins, losses, blackjack, win/loss ratio, games played, and "rank" are stored.
- Clone the repository and navigate to the bin file in your terminal (or compile the src files on your own if you like).
- Ensure Java is installed and run
java FrontEnd
. Enter your profile/player name:
Enter a name you would like to save your session's stats under.- Sample hand:
Drew Card:
βββββββββ
β A β
β β // Visual representation of your cards
β β β
β β
β A β
βββββββββ
Drew Card:
βββββββββ
β 3 β
β β //
β β β
β β
β 3 β
βββββββββ
Dealer drew a(n) Queen of Clubs // Tell user what dealer drew
Your hand total is 14 // Simple numerical hand total
Would you like to hit or stand (H/S)? // Prompt to hit (draw) or stand
- Simply follow the prompts to play!
Ranks
S - W/L Ratio >= 1
A - W/L Ratio >= .8
B - W/L Ratio >= .6
C - W/L Ratio >= .4
D - W/L Ratio < .4