This is a simple implementation of the Blackjack game in HTML, CSS, and JavaScript.
The Blackjack Game project is a web-based application that allows players to play the popular card game Blackjack. The game is built using HTML, CSS, and JavaScript, and it provides a simple interface for players to interact with the game.
You can see a live demo of the Blackjack Game here.
To run the Blackjack Game locally, follow these steps:
- Clone the repository:
git clone https://github.com/Saqlain-qark/BlackJack-Game.git
- Navigate to the project directory:
cd BlackJack-Game
- Open the
BlackJack_Game.html
file in your preferred web browser.
Once you have the game running, follow these steps to play Blackjack:
- Click on the "START GAME" button to start a new game.
- Two cards will be dealt, and their values will be displayed in the "Cards" section.
- The sum of the cards will be displayed in the "Sum" section.
- If the sum is less than or equal to 20, you will be prompted to choose whether to draw a new card.
- Click on the "NEW CARD" button to draw a new card and add its value to the sum.
- The game will check if you have reached 21 (a Blackjack) or have gone over 21 (bust).
- The game will display a message indicating whether you win, lose, or can continue drawing cards.
- Continue playing by choosing to draw a new card or stopping the game.
Contributions to the Blackjack Game project are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue on the GitHub repository.
This project is licensed under the MIT License.