{ "info": { "author": "Jonathan Goble", "author_email": "jcgoble3@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: Games/Entertainment" ], "description": "# pyblackjack\n\n**pyblackjack** is a fun way to waste time at the terminal playing\nblackjack with a computerized dealer.\n\n## Installation\n\n`pip install pyblackjack`\n\n## Getting Started\n\nType `blackjack` at the terminal to launch the game. At the first\nprompt, you may press `q` to jump straight into the action, using a\ndefault player name, six-deck shoe, and 1,000 starting chips, with the\ndealer hitting on soft 17.\n\nYou can also configure the game to your liking by going through the\nprompts. The first prompt asks you for the number of players (human; CPU\nplayers may come in the future but are not available yet). You can\nselect from one to six players, and enter a name for each. Next, you\nwill be asked for the number of starting chips per player, followed by\nthe number of decks in the shoe (up to eight). The last prompt will ask\nyou if the dealer should hit on a soft 17 (which increases the house\nedge slightly). After this, you're ready to start playing!\n\n## Playing\n\nYour first task for every hand is to enter your bet. After all players\nhave placed a bet, the cards will be dealt and displayed. At this point,\nif the dealer is showing an Ace, each player will be asked whether they\nwish to buy insurance, the cost of which is one-half of your bet.\n\nAfter this, or if the dealer is not showing an Ace, blackjacks will be\nchecked. If the dealer has a blackjack, it will be revealed, the hand\nends immediately, and all players lose unless they also have blackjack,\nin which case it is a push. If anyone bought insurance, they will lose\ntheir bet but be paid 2:1 on the insurance.\n\nIf the dealer does not have blackjack, but a player does, that player is\npaid at 3:2 and takes no further part in the hand.\n\nAfter this, if any active players remain, the first player in turn order\nwill be shown their hand and asked for an action. Available actions are\nlisted below. Except for hit and stand, all actions are only available\nas your first action before doing anything else, and then sometimes only\nunder certain circumstances as noted.\n\n* Hit (`h`): Deal another card to your hand. If this results in a hard\n total over 21, the game will display a message that you busted, and\n your turn will end and you will lose your bet.\n\n* Stand (`s`): End your turn.\n\n* Double down (`d`): Double your bet, deal one (and only one) additional\n card to the hand, and end your turn. This option is only available\n when your first two cards total 9, 10, or 11.\n\n* Split (`p`): Split your two starting cards into two separate hands,\n placing a second bet identical to your original bet on the second\n hand. This is only available if both starting cards form a pair (e.g.\n two sixes or two queens). A second card will then be dealt to each\n hand, which will be played separately from the other. After splitting,\n the only actions available on the split hands will be to hit or stand,\n except that if you split a pair of aces, your turn will end\n immediately after the second card is dealt to each hand (i.e. you\n cannot hit split aces).\n\n* Surrender (`u`): Give up and drop out of the hand, with half your bet\n being returned.\n\nOnce the first player has completed their turn, the next player will be\nasked for actions, and so on until all players have played. At this\npoint, the dealer will reveal the downcard and play their hand. The\ndealer will hit on 16 or below and stand on 17 or higher, except that if\nthe option for the dealer to hit on soft 17 was enabled in setup (or the\nquickstart option was chosen), the dealer will do so.\n\nOnce the dealer has played their hand, the dealer pays the winners. If\nthe dealer busts, all players who did not also bust are paid 1:1. If the\ndealer did not bust, players with a higher total than the dealer are\npaid 1:1, players with the same total push (receive their bet back), and\nplayers with a lower total lose their bet.\n\nThe game will then return to the prompt to enter a bet. At this prompt,\nany player wishing to quit may enter `q` to do so and will be removed\nfrom the game. If the last player in the game quits, the program will\nterminate.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/jcgoble3/blackjack", "keywords": "game,blackjack", "license": "MIT license", "maintainer": "", "maintainer_email": "", "name": "pyblackjack", "package_url": "https://pypi.org/project/pyblackjack/", "platform": "", "project_url": "https://pypi.org/project/pyblackjack/", "project_urls": { "Homepage": "https://gitlab.com/jcgoble3/blackjack" }, "release_url": "https://pypi.org/project/pyblackjack/0.1.0a7/", "requires_dist": null, "requires_python": ">=3.4", "summary": "Simple terminal-based blackjack game", "version": "0.1.0a7" }, "last_serial": 4566529, "releases": { "0.1.0a6": [ { "comment_text": "", "digests": { "md5": "4b420b252591b551793ed9522ef75978", "sha256": "d8b0c74df334c4f9f2fa1c7396e1715dbee62fffae6046f0105aba8d94c4867a" }, "downloads": -1, "filename": "pyblackjack-0.1.0a6-py3-none-any.whl", "has_sig": false, "md5_digest": "4b420b252591b551793ed9522ef75978", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 6770, "upload_time": "2018-05-20T08:37:12", "url": "https://files.pythonhosted.org/packages/13/a0/2a16fbc0ca237d6c066176c8b4714a6e47f448d72c169ed8bc5e4d446e59/pyblackjack-0.1.0a6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "23b2eae68812ef43a6da87591c020ee7", "sha256": "a25e375cacf92afbd390cd5603069e27d671e188afbb4f55e1626f0675888dd4" }, "downloads": -1, "filename": "pyblackjack-0.1.0a6.tar.gz", "has_sig": false, "md5_digest": "23b2eae68812ef43a6da87591c020ee7", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 7094, "upload_time": "2018-05-20T08:37:13", "url": "https://files.pythonhosted.org/packages/91/38/cc425a59f39044a300f69ce53f723bf9f6da18e5a8d0e5fa4881b68bc8dc/pyblackjack-0.1.0a6.tar.gz" } ], "0.1.0a7": [ { "comment_text": "", "digests": { "md5": "4586bda59327c2bd0d5335386a750a33", "sha256": "dee3f78a11ac3305bbaab86ec0c5e1ad0d43a51ce80fb8ab490817937ad951bc" }, "downloads": -1, "filename": "pyblackjack-0.1.0a7-py3-none-any.whl", "has_sig": false, "md5_digest": "4586bda59327c2bd0d5335386a750a33", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 8420, "upload_time": "2018-12-06T05:25:32", "url": "https://files.pythonhosted.org/packages/5d/66/b7399f80379ed5ddda8a44dd8868bb2fb2628692c21dd7bed801a34dc535/pyblackjack-0.1.0a7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "617b15f94fa00cb11b93de227b706a80", "sha256": "0575bc6d27220934bf790b53a8f78a3a00f5b48001ef036b544a6ef856a8bf16" }, "downloads": -1, "filename": "pyblackjack-0.1.0a7.tar.gz", "has_sig": false, "md5_digest": "617b15f94fa00cb11b93de227b706a80", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 7263, "upload_time": "2018-12-06T05:25:33", "url": "https://files.pythonhosted.org/packages/ff/ce/67175c9ce1a72abf0f4ba5e8e8e52e45190545f977d3ada9866ce7cdbe58/pyblackjack-0.1.0a7.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4586bda59327c2bd0d5335386a750a33", "sha256": "dee3f78a11ac3305bbaab86ec0c5e1ad0d43a51ce80fb8ab490817937ad951bc" }, "downloads": -1, "filename": "pyblackjack-0.1.0a7-py3-none-any.whl", "has_sig": false, "md5_digest": "4586bda59327c2bd0d5335386a750a33", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.4", "size": 8420, "upload_time": "2018-12-06T05:25:32", "url": "https://files.pythonhosted.org/packages/5d/66/b7399f80379ed5ddda8a44dd8868bb2fb2628692c21dd7bed801a34dc535/pyblackjack-0.1.0a7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "617b15f94fa00cb11b93de227b706a80", "sha256": "0575bc6d27220934bf790b53a8f78a3a00f5b48001ef036b544a6ef856a8bf16" }, "downloads": -1, "filename": "pyblackjack-0.1.0a7.tar.gz", "has_sig": false, "md5_digest": "617b15f94fa00cb11b93de227b706a80", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.4", "size": 7263, "upload_time": "2018-12-06T05:25:33", "url": "https://files.pythonhosted.org/packages/ff/ce/67175c9ce1a72abf0f4ba5e8e8e52e45190545f977d3ada9866ce7cdbe58/pyblackjack-0.1.0a7.tar.gz" } ] }