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.
- Play classic Blackjack in your terminal (CLI)
- Support for doubling, splitting, and insurance
- Dealer AI and full player decision handling
- Optimal for card-counting (counter enabled by default)
- Cross-platform: Windows, Linux, macOS
- Self-contained builds (no .NET installation required)
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 exit the game: Ctrl+C
-
🪟 Windows x64
➡ Download ZIP -
🐧 Linux x64
➡ Download TAR.XZ -
🍎 macOS x64
➡ Download TAR.XZ
Unpack the archive and run the executable inside.
Requires .NET SDK 9.0 or later.
git clone https://github.com/porzeraklon/blackjack.git
cd blackjack
Then build for your target OS:
-
🪟 Windows x64
dotnet publish -c Release -r win-x64 --self-contained true /p:PublishTrimmed=true
-
🐧 Linux x64
dotnet publish -c Release -r linux-x64 --self-contained true /p:PublishTrimmed=true
-
🍎 macOS x64
dotnet publish -c Release -r osx-x64 --self-contained true /p:PublishTrimmed=true
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.