Play Blackjack in the console, powered by C++.
To compile the Blackjack use
./build.sh
Alternatively, you can build the executable with this command:
g++ main.cpp deck.cpp players.cpp blackjack.cpp -g -o blackjack
Blackjack takes no arguments. So, run the program with
./blackjack
- Enter a bet amount (must be int)
- Enter "Hit" to be dealt another card || "Stay" to end turn
- Players can play as many rounds as they'd like until they best out.