play-blackjack


Nameplay-blackjack JSON
Version 0.1.0 PyPI version JSON
download
home_page
SummaryCommand Line Single-player game of Blackjack
upload_time2023-02-10 04:26:52
maintainer
docs_urlNone
authorBen Griffith
requires_python>=3.9
license
keywords blackjack games cards
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ## General Info
Command Line Single-player game of Blackjack loosely following the structure/rules outlined in this YouTube video (https://www.youtube.com/watch?v=eyoh-Ku9TCI). 

The game consists of two rounds. In the first round, `Player` makes an initial bet and then two cards are dealt to the `Player` along with two cards being dealt to the `Dealer` with the second card face down/not yet revealed. In the last round, `Player` is presented with two options: hit or stay. When `Player` chooses hit, they are dealt another card by the `Dealer`. When `Player` chooses stay, they are deciding to not draw another card so the second card of the `Dealer` is revealed/accounted for. If the `Dealer` score is less than 16, they are required to draw another card until their score is greater than 16. `Player` score and `Dealer` score are then compared with the higher score winning.

At anytime during game play:
- If `Player` or `Dealer` score is greater than 21 (Blackjack), they bust, other entity wins and the game is over.
- If `Player` or `Dealer` score is equal to 21 (Blackjack), they win, other entity loses and the game is over.

If `Player` wins at Blackjack, they earn 2x their initial bet.

At the end of each game, the `Player` is asked if they would like to play again.

## Setup
To run this project, follow the steps below:
```
$ git clone https://github.com/BenGriffith/blackjack.git
$ cd blackjack
$ python3 -m virtualenv venv
$ source venv/bin/activate
$ pip install -r requirements.txt
$ python -m blackjack
```

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "play-blackjack",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "blackjack,games,cards",
    "author": "Ben Griffith",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/46/96/d1998b8ffc08ad811c60b9a46ee754a0a38f02ce7311dfaa836239648c6a/play-blackjack-0.1.0.tar.gz",
    "platform": null,
    "description": "## General Info\nCommand Line Single-player game of Blackjack loosely following the structure/rules outlined in this YouTube video (https://www.youtube.com/watch?v=eyoh-Ku9TCI). \n\nThe game consists of two rounds. In the first round, `Player` makes an initial bet and then two cards are dealt to the `Player` along with two cards being dealt to the `Dealer` with the second card face down/not yet revealed. In the last round, `Player` is presented with two options: hit or stay. When `Player` chooses hit, they are dealt another card by the `Dealer`. When `Player` chooses stay, they are deciding to not draw another card so the second card of the `Dealer` is revealed/accounted for. If the `Dealer` score is less than 16, they are required to draw another card until their score is greater than 16. `Player` score and `Dealer` score are then compared with the higher score winning.\n\nAt anytime during game play:\n- If `Player` or `Dealer` score is greater than 21 (Blackjack), they bust, other entity wins and the game is over.\n- If `Player` or `Dealer` score is equal to 21 (Blackjack), they win, other entity loses and the game is over.\n\nIf `Player` wins at Blackjack, they earn 2x their initial bet.\n\nAt the end of each game, the `Player` is asked if they would like to play again.\n\n## Setup\nTo run this project, follow the steps below:\n```\n$ git clone https://github.com/BenGriffith/blackjack.git\n$ cd blackjack\n$ python3 -m virtualenv venv\n$ source venv/bin/activate\n$ pip install -r requirements.txt\n$ python -m blackjack\n```\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Command Line Single-player game of Blackjack",
    "version": "0.1.0",
    "split_keywords": [
        "blackjack",
        "games",
        "cards"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1d37391e891aa058e18fee8c8edb14f056c0af45dea8257a47464910d0a84b3b",
                "md5": "7975be5c6435365d7af209b68aa6c77c",
                "sha256": "43aefcbb14498a312ee72a19bd64018c0e60864f14e935a03d1c46f5d40fc748"
            },
            "downloads": -1,
            "filename": "play_blackjack-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "7975be5c6435365d7af209b68aa6c77c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6654,
            "upload_time": "2023-02-10T04:26:51",
            "upload_time_iso_8601": "2023-02-10T04:26:51.535413Z",
            "url": "https://files.pythonhosted.org/packages/1d/37/391e891aa058e18fee8c8edb14f056c0af45dea8257a47464910d0a84b3b/play_blackjack-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "4696d1998b8ffc08ad811c60b9a46ee754a0a38f02ce7311dfaa836239648c6a",
                "md5": "5eabe9166f926b9cffafb4118dc063d4",
                "sha256": "35537eedee1cb9343a66acf727d42803722aaeacc1f1cd5bd86a83afebde1f8f"
            },
            "downloads": -1,
            "filename": "play-blackjack-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "5eabe9166f926b9cffafb4118dc063d4",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 4087,
            "upload_time": "2023-02-10T04:26:52",
            "upload_time_iso_8601": "2023-02-10T04:26:52.696810Z",
            "url": "https://files.pythonhosted.org/packages/46/96/d1998b8ffc08ad811c60b9a46ee754a0a38f02ce7311dfaa836239648c6a/play-blackjack-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-02-10 04:26:52",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "play-blackjack"
}
        
Elapsed time: 0.04004s