Skip to content

BhavikJaviya24/blackjack_python_project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

blackjack_python_project 🃏


This repository contains a straightforward command-line Blackjack game implemented in Python. Test your luck and skill against a computer dealer!


Table of Contents


Features

  • Simulates a single-player blackjack game against a computer dealer.
  • Basic blackjack rules implemented:
    • Automatic "Blackjack" recognition.
    • Handling of Ace as 1 or 11 based on the current hand.
    • Dealer logic to stop drawing at 17 or higher.
  • Interactive prompts for player decisions.
  • Randomized card draws for a fair game.

Rules

  1. Objective: Get closer to 21 than the dealer without exceeding 21.
  2. Card Values:
    • Number cards are worth their face value.
    • Face cards (Jack, Queen, King) are worth 10.
    • Aces can count as 1 or 11.
  3. Gameplay:
    • Player starts with two cards, and the dealer gets two cards (one hidden).
    • The player can "hit" to draw additional cards or "stand" to keep their hand.
    • If either the player or dealer exceeds 21, they "bust" and lose.
    • The dealer draws until reaching at least 17.

Installation

  1. Clone the repository:
    git clone https://github.com/BhavikJaviya24/blackjack_python_project.git
    cd blackjack_python_project
  2. Ensure you have Python 3 installed.

Usage

  1. Run the game:
    python main.py
  2. Follow the on-screen instructions to play:
    • Type 'y' to draw another card.
    • Type 'n' to end your turn.
  3. Enjoy the game! 🎉

Technologies Used

  • Python 3.x: Core programming language.

Future Improvements

  • Add betting and scoring systems.
  • Implement a graphical user interface (GUI).
  • Include a multiplayer option.
  • Add sound effects and animations for a more immersive experience.

Contributing

Contributions are welcome! Feel free to:

  • Fork this repository.
  • Submit a pull request with improvements or bug fixes.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages