Simple terminal Blackjack built with C and ncurses.
- A TUI game that lets you play Blackjack in the terminal.
- Uses a single 52-card deck and automatically reshuffles when the deck gets low.
- Playable with keyboard input only.
make./blackjack- Betting phase
1$10 /2$50 /3$100 /4$500cclear betaall-inbdeal (start the round)
- During play
hhit (draw a card)sstand (end your turn)ddouble (double bet + draw one card and end)?helpqquit
- After the round
pplay againqquit
- The goal is to get a higher total than the dealer without going over 21.
- Number cards are their value, J/Q/K are worth 10, A is worth 1 or 11.
- Starting bankroll is $1000.
- Hits on totals under 17.
- Also hits on soft 17 (A counted as 11 for a total of 17).
- Keeps the first card face-down during the player's turn.
- Blackjack (21 with the first two cards) pays 3:2.
- Ties are a push.
- Player bust is an immediate loss.
- Double down: available (first two cards only, if you have enough bankroll).
- Split: not available.
- Surrender: not available.
- Insurance: not available.
- Single 52-card deck.
- Automatically switches to a fresh deck and shuffles when fewer than 13 cards remain.
- You cannot start a round with a $0 bet.
- If your bankroll reaches $0, you get "Game Over" and can
rto reset orqto quit.
This program is experimental and intended for educational purposes only.
This software is provided "as is", without any warranty of any kind. The author shall not be held liable for any damage, data loss, system failure, security issues, or any other problems caused directly or indirectly by the use of this program.
Use at your own risk.
