This repository contains the code for the classic BlackJack card game.
To play this text-based BlackJack download the project's source code, open your terminal in project root directory and type:
./bin/playBlackJach.sh
This BlackJack game contains a limited set of moves/actions:
- place bet
- hit
- stand
- double down
- quit
You can play a input-based version, where you type the command correspoding to each possible move, or your can let a bot be the player.
This bot can have two different strategies:
- Greedy Player - always hits until his hand is greater or equal to 15,
- Cautious Player - only hits if he has 60% chance of not busting
Here is a screenshot of the initial screen, where you can choose your game mode:
Here is the UML class diagram for the BlackJack card game: