Skip to content

A simple BlackJack game created using OOPs and basic concepts of Python

Notifications You must be signed in to change notification settings

AMRzip/BlackJack-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Python Blackjack Game

Welcome to the Python Blackjack game! This project is a simple implementation of the classic card game, Blackjack, using basic concepts of Python, including Object-Oriented Programming (OOP).

Introduction

This project is a simple console-based Blackjack game written in Python. It is designed to help beginners understand and practice basic Python concepts, including classes and methods. The game allows a player to play against the dealer with simple betting mechanics.

Features

  • Simple text-based user interface
  • Basic betting system with a starting balance
  • Interactive gameplay with options to hit or stand
  • Dealer AI with basic decision-making
  • Hand value calculation, including handling for Aces

Installation

To get started, you need to have Python installed on your machine. You can download and install Python from python.org.

  1. Clone the repository:

    git clone https://github.com/AMRzip/BlackJack-in-Python.git
  2. Navigate to the project directory:

    cd BlackJack-in-Python
  3. Run the game:

    python card_Game.py

Usage

  1. Start the game by running the card_Game.py script.
  2. Follow the on-screen instructions to place your bet and play the game.
  3. The game continues in a loop until you choose to quit or run out of balance.

Game Rules

  1. The game starts with a player and a dealer.
  2. Both the player and the dealer are dealt two cards each. The player's cards are both face up, while the dealer has one card face up and one face down.
  3. The player can choose to "Hit" (take another card) or "Stand" (stop taking cards).
  4. The goal is to have a hand value as close to 21 as possible without exceeding it.
  5. If the player's hand exceeds 21, they bust and lose the bet.
  6. The dealer must hit until their hand value is 17 or higher.
  7. The winner is determined by who has the hand value closest to 21 without exceeding it.

Contributing

Contributions are welcome! If you have suggestions for improvements or new features, feel free to open an issue or submit a pull request.

About

A simple BlackJack game created using OOPs and basic concepts of Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages