Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (blackjack21) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Blackjack on CLI
This is a simple command-line interface (CLI) blackjack game built using Node.js. Enjoy playing the classic casino game right in your terminal!
Features
- 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.
Requirements
- Node.js installed on your machine
Usage
To start the game, run the following command:
node index.js
Follow the prompts displayed in the terminal to make your moves during the game.
Gameplay
The game follows standard blackjack rules.
- You'll be dealt two cards initially.
- 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
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.
License
This project is licensed under the MIT License.