BlackJack CLI is a terminal-based implementation of the classic Blackjack card game written in C#. Designed for players seeking a nostalgic and interactive experience, it offers a straightforward yet engaging platform to enjoy the timeless card game.
Key Features:
Human vs. dealer gameplay with full game logic, including split, double down, and insurance options.
Optional card counting bot that can play automatically or assist in decision-making.
Cross-platform support for Windows, Linux, and macOS with self-contained builds requiring no .NET installation.
Dealer AI that adheres to standard Blackjack rules.
Audience & Benefit:
Ideal for casual gamers, card enthusiasts, and learners of Blackjack strategy who want to practice or enjoy the game in a terminal environment. The software provides an educational platform for understanding card counting and decision-making while offering a fun, low-overhead experience.
BlackJack CLI can be installed via winget, making it easy to integrate into your terminal-based workflow.
README
🃏 BlackJack CLI
BlackJack CLI is a lightweight, terminal-based implementation of the classic Blackjack card game written in C#. It features a human player vs dealer, optional card counting bot, and full game logic including split, double down, and insurance.
📸 Gameplay Preview
Start screen
Place your bet
Example round
Dealer hits Blackjack
🎯 Features
Play classic Blackjack in your terminal (CLI)
Support for doubling, splitting, and insurance
Dealer AI and full player decision handling
Card counting bot that can play for you
Optimal for card-counting (counter enabled by default)
Cross-platform: Windows, Linux, macOS
Self-contained builds (no .NET installation required)
⌨️ Controls
You can type the full command or just the first letter:
Hit → h
Stand → s
Double Down → dd
To turn off card counter type "--count" while running in terminal
To turn off card sums type "--sums" while running in terminal
To turn on card counting bot type "--bot" while running in terminal
This project was created as a clean, educational example of implementing game logic in a cross-platform CLI environment using .NET.
Contributions and forks are welcome.