Marlup / Blackjack

Python jupyter code of blackjack game. See if there's anything interesting for you

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Blackjack Game

A simple implementation of a command-line Blackjack (21) game in Python.

Table of Contents

Introduction

This Python program allows you to play Blackjack against a dealer. You can customize the number of players, including both human and bot players, and the number of decks used in the game.

Features

  • Play Blackjack against a computer dealer.
  • Configure the game with options for automatic play, the number of human players, and the number of bot players.
  • Customize the number of decks used in the game.
  • Simple command-line interface.

Usage

  1. Clone the repository:

    git clone https://github.com/Marlup/blackjack-game.git
  2. Change to the project directory:

      cd blackjack-game
  3. Run the game:

      python blackjack.py
  4. Follow the on-screen instructions to play the game.

Follow the on-screen instructions to play the game.

Installation

There are no specific installation requirements for this program other than having Python 3 installed on your system.

Game Rules

  • The game follows standard Blackjack rules.
  • The dealer must stand on 17 or higher.
  • You can choose to stand or continue drawing cards to reach a score as close to 21 as possible without going over.
  • Aces can count as 1 or 10, depending on which value benefits the player more.
  • The player with a score closest to 21 without exceeding it wins.

Contributing

If you'd like to contribute to this project, please follow these steps:

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

TODO

  • Add comments to functions and important logic
  • Refactoring
  • Simplify if possible
  • Check readabilit

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Python jupyter code of blackjack game. See if there's anything interesting for you


Languages

Language:Jupyter Notebook 59.4%Language:Python 40.6%