Skip to content

ImSatyamK/black-jack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Black Jack

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.

Live Demo

BLACK JACK

ABOUT

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

  1. Enter your name to start the game.
  2. You begin with a fixed number of chips.
  3. Click "+ Card" to draw a card.
  4. If your total exceeds 21, you lose the round.
  5. Click "Stop" to end your turn.
  6. The dealer plays automatically.
  7. Chips are updated based on win or loss.
  8. Click "New Game" to start again.

TECH STACK

  • HTML
  • CSS
  • JavaScript (Vanilla)

RUN LOCALLY

  1. Clone the repository: git clone https://github.com/ImSatyamK/black-jack.git

  2. 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!

About

🎴 A simple Blackjack game built with HTML, CSS, and JavaScript β€” play against the dealer, draw cards, and test your luck!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors