This project is a Command Line Interfect (CLI) game based on the famous casino card game, Blackjack.
In this game, the goal is to get a hand of cards that’s worth as close to 21 points as possible! If a player’s hand goes over 21 points, they are eliminated from the game.
Repo: https://github.com/christianaao/blackjack-card-game
This project was written in JavaScript. There is no frontend for this project (but maybe in the future).
This project was created using the following frameworks:
- Node.js: runtime environment
- Jest: for testing
- Chalk: for font colours and styles
Ensure that you have installed Node.js: https://nodejs.org/en/download
In order to run this game locally:
-
In your terminal, locate the directory you would like to save the code to and enter the following. This command will clone this repo:
git clone https://github.com/christianaao/blackjack-card-game
-
In the cloned directory, type
npm install
in your terminal to install all dependencies. -
Enter the following Scripts into your packet.json file:
- "test": "jest",
- "start": "node blackjack.js"
To start the game locally, run:
npm start
To run the test suites and verify the game’s functionality, run:
npm test
☺ I hope you enjoy playing the game ☺
- "jest": "^29.7.0"
- "chalk": "4.1.2"