black-jack Svelte Themes

Black Jack

🎲 Blackjack Game – A simple Blackjack game where you can draw cards, stand, and easily reset. Built with Svelte and Tailwind CSS.

🃏 Blackjack Game

A sleek and interactive Blackjack game built with Svelte and styled with Tailwind CSS. Test your luck against the dealer in this classic casino game!

📚 Table of Contents

🎲 Game Rules

Blackjack, also known as 21, is a popular casino card game. Here's a quick overview of the rules:

  1. The goal is to beat the dealer's hand without going over 21 points.
  2. Face cards (Jack, Queen, King) are worth 10 points.
  3. Aces are worth 1 or 11 points, whichever is more favorable.
  4. Other cards are worth their face value.
  5. Each player starts with two cards, one of the dealer's cards is hidden.
  6. Players can request additional cards ("hit") or stop at their current total ("stand").
  7. If a player's hand exceeds 21 points, they bust and lose.
  8. After all players have finished, the dealer reveals their hidden card and hits or stands according to specific rules.
  9. The player wins if their hand is closer to 21 than the dealer's hand, or if the dealer busts.

✨ Features

  • Intuitive user interface
  • Easy-to-use controls for hitting, standing, and restarting
  • Responsive design that works on desktop and mobile
  • Realistic card animations
  • Score tracking

🚀 Installation

To get started with this project, clone the repository and install the dependencies:

# Clone the repository
git clone https://github.com/obed-tc/black-jack.git
cd black-jack

# Install dependencies with npm
npm install

# Or with pnpm
pnpm install

🎮 Usage

To run the development server:

npm run dev
# or
pnpm run dev

To build for production:

npm run build
# or
pnpm run build

To preview the production build:

npm run preview
# or
pnpm run preview

🤝 Contributing

Contributions are welcome! Here's how you can contribute:

  1. Fork the repository
  2. Create a new branch: git checkout -b feature-branch-name
  3. Make your changes
  4. Commit your changes: git commit -m 'Add some feature'
  5. Push to the branch: git push origin feature-branch-name
  6. Submit a pull request

Please make sure to update tests as appropriate and adhere to the existing coding style.

📄 License

This project is open source and available under the MIT License.

👨‍💻 Author

Obed TC - GitHub Profile

🌐 Live Demo

Check out the live demo of the game: Blackjack Game


Enjoy the game and may the odds be in your favor! 🍀

Top categories

Loading Svelte Themes