An open API service indexing awesome lists of open source software.

https://github.com/racoolstudio/blackjack


https://github.com/racoolstudio/blackjack

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

# Black Jack

Welcome to Black Jack, a simple game of chance where you aim to get a sum of cards as close to 21 as possible without going over.

## Status
- The game status is displayed in the "Status" section.
- The current sum of cards is displayed in the "Sum" section.
- You can view the drawn cards in the "Cards" section.

## How to Play
1. Click the "Start Game" button to initiate a new game.
2. Two initial cards will be drawn, and their sum will be displayed.
3. You can draw additional cards by clicking the "Pick Card" button.
4. The goal is to reach a sum as close to 21 as possible without exceeding it.
5. If you reach a sum of exactly 21, you win! 🥳
6. If you exceed 21, you lose and can't pick more cards. 😭

## Game Flow
- The game dynamically updates the display based on the drawn cards and the current sum.
- The "Status" section provides feedback on the game state.
- Buttons are enabled or disabled based on the game state to ensure a smooth gaming experience.

## How to Run
1. Open the `index.html` file in your web browser.

## Technologies Used
- HTML
- CSS
- JavaScript

Feel free to enjoy the game, and good luck with your Black Jack experience!