This is a simple command-line interface (CLI) blackjack game built using Node.js. Enjoy playing the classic casino game right in your terminal!
- Play blackjack against a computerized dealer.
- Interactive interface with textual representations of cards.
- Basic functionalities: hit, stand, split, and double down.
- Track your cash and bet accordingly.
- Node.js installed on your machine
To start the game, run the following command:
npx blackjack21
or
npm install -g blackjack21
followed by blackjack21
.
If you want to run the module locally, clone the repository and run npx .
or node bin.js
.
Follow the prompts displayed in the terminal to make your moves during the game.
The game follows standard blackjack rules.
- You'll be dealt two cards initially.
- Bet your stake from the available denominations that is generated based on your current balance.
- Choose from available actions: hit, stand, split, and double down.
- Aim to reach a hand value as close to 21 as possible without exceeding it.
- Beat the dealer's hand without going bust to win.
Contributions are welcome! If you find any bugs or wish to add new features, feel free to open an issue or submit a pull request.
This project is licensed under the MIT License.