Code Monkey home page Code Monkey logo

blackjack's Introduction

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.

blackjack's People

Contributors

marlup avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.