A browser-based Blackjack-style card game built using HTML, CSS, and JavaScript. The game includes player name input, a chip system, and simple button-based controls.
BLACK JACKABOUT
This project is a simple implementation of a Blackjack game where the player tries to reach a hand value as close to 21 as possible without exceeding it. The game focuses on JavaScript logic, state handling, and DOM manipulation.
FEATURES
- Player name input
- Chip-based system
- "+ Card" button to draw a new card
- "Stop" button to end the player's turn
- "New Game" button to reset the game
- Dealer logic and automatic result evaluation
HOW TO PLAY
- Enter your name to start the game.
- You begin with a fixed number of chips.
- Click "+ Card" to draw a card.
- If your total exceeds 21, you lose the round.
- Click "Stop" to end your turn.
- The dealer plays automatically.
- Chips are updated based on win or loss.
- Click "New Game" to start again.
TECH STACK
- HTML
- CSS
- JavaScript (Vanilla)
RUN LOCALLY
-
Clone the repository: git clone https://github.com/ImSatyamK/black-jack.git
-
Open index.html in your browser.
PROJECT STRUCTURE
black-jack/
- index.html
- style.css
- script.js
π LICENSE
This project is open-source and available under the MIT License.
β Donβt forget to star the repository if you like this project!