{"id":19963232,"url":"https://github.com/bilbottom/blackjack","last_synced_at":"2025-03-01T16:44:13.768Z","repository":{"id":130640469,"uuid":"440287764","full_name":"Bilbottom/blackjack","owner":"Bilbottom","description":"Blackjack, also called 21.","archived":false,"fork":false,"pushed_at":"2025-01-08T21:06:38.000Z","size":165,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-08T22:13:41.586Z","etag":null,"topics":["game","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bilbottom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-20T19:42:21.000Z","updated_at":"2025-01-08T21:06:40.000Z","dependencies_parsed_at":"2025-01-10T06:45:43.925Z","dependency_job_id":null,"html_url":"https://github.com/Bilbottom/blackjack","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fblackjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fblackjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fblackjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bilbottom%2Fblackjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bilbottom","download_url":"https://codeload.github.com/Bilbottom/blackjack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241396754,"owners_count":19956405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["game","python"],"created_at":"2024-11-13T02:15:11.857Z","updated_at":"2025-03-01T16:44:13.742Z","avatar_url":"https://github.com/Bilbottom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![Python](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110/)\n[![Poetry](https://img.shields.io/endpoint?url=https://python-poetry.org/badge/v0.json)](https://python-poetry.org/)\n[![tests](https://github.com/Bilbottom/blackjack/actions/workflows/tests.yaml/badge.svg)](https://github.com/Bilbottom/blackjack/actions/workflows/tests.yaml)\n[![coverage](coverage.svg)](https://github.com/dbrgn/coverage-badge)\n![GitHub last commit](https://img.shields.io/github/last-commit/Bilbottom/blackjack)\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)\n[![pre-commit.ci status](https://results.pre-commit.ci/badge/github/Bilbottom/blackjack/main.svg)](https://results.pre-commit.ci/latest/github/Bilbottom/blackjack/main)\n\n\u003c/div\u003e\n\n---\n\n# Blackjack ♠️♥️♣️♦️\n\nBlackjack, also called 21.\n\n## Sample Game 📝\n\nSet up a game with some number of players and some number of decks:\n\n```python\nimport blackjack\n\ngame = blackjack.Game(min_bet=10)\ngame.standard_setup(number_of_players=1, number_of_decks=6)\ngame.play_game()\n```\n\nA typical game will look something like this:\n\n```\nDealer\n[T♣ ??] [{10}]\n\nPlayer_1 has £500 with hand:\n    [3♥ 8♣] {11}  stake: £10\n\n\nPlayer_1's turn:\n\nPlaying hand [3♥ 8♣] {11}\n[h] Hit, [s] Stand, [d] Double down, [sp] Split?\nPlayer chose DOUBLE_DOWN\n\nDealer [T♣ 3♣ 4♦] {17}\n\n\nPlayer_1 [3♥ 8♣ Q♦] {21}\nOutcome: win\n\nPlay another round? [Y/n]\n--------------------\n\nGame ended with:\n  - Player_1: £510\n```\n\n## Contributing 🤝\n\nThis is just a personal project (so this instruction is just for me).\n\nThe Python packaging is managed with [Poetry](https://python-poetry.org/); check which version is in the [poetry.lock](poetry.lock) file.\n\n```bash\npoetry install --with dev,test\npre-commit install --install-hooks\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilbottom%2Fblackjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbilbottom%2Fblackjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbilbottom%2Fblackjack/lists"}