{"id":21252437,"url":"https://github.com/ondrejhruby/blackjack","last_synced_at":"2025-03-15T05:28:31.614Z","repository":{"id":256279865,"uuid":"851554403","full_name":"ondrejhruby/Blackjack","owner":"ondrejhruby","description":"Command-line Blackjack game implemented in Python, where players can test their luck and strategy against a computer dealer. The game follows classic Blackjack rules, allowing players to hit, stand, and try to reach 21 without busting.","archived":false,"fork":false,"pushed_at":"2024-09-03T10:21:54.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T21:07:08.226Z","etag":null,"topics":["blackjack","blackjack-game","card-game","command-line-game","console-game","game-development","game-logic","interactive-game","object-oriented-programming","oop","python","python-game","randomization","terminal-game"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"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/ondrejhruby.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":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-03T10:00:33.000Z","updated_at":"2024-09-03T10:21:57.000Z","dependencies_parsed_at":"2024-09-10T01:19:10.396Z","dependency_job_id":"5de7ff1f-9128-461f-a9be-eb513e6e0677","html_url":"https://github.com/ondrejhruby/Blackjack","commit_stats":null,"previous_names":["ondrejhruby/blackjack"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondrejhruby%2FBlackjack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondrejhruby%2FBlackjack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondrejhruby%2FBlackjack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ondrejhruby%2FBlackjack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ondrejhruby","download_url":"https://codeload.github.com/ondrejhruby/Blackjack/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690117,"owners_count":20331725,"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":["blackjack","blackjack-game","card-game","command-line-game","console-game","game-development","game-logic","interactive-game","object-oriented-programming","oop","python","python-game","randomization","terminal-game"],"created_at":"2024-11-21T03:47:29.697Z","updated_at":"2025-03-15T05:28:31.591Z","avatar_url":"https://github.com/ondrejhruby.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blackjack Game\n\nA simple command-line Blackjack game implemented in Python. This game allows players to experience the excitement of Blackjack, competing against a computer dealer with classic rules. Test your strategy, try to reach 21, and avoid going bust!\n\n## How to Play\n\n1. **Start the Game**: Run the game using Python in your command line or terminal.\n2. **Gameplay**:\n   - You start with two cards, and the dealer shows one card.\n   - You can choose to \"Hit\" to draw another card or \"Stand\" to keep your current hand.\n   - The goal is to get as close to 21 without exceeding it.\n   - The dealer will reveal its cards after the player stands and will draw cards until reaching 17 or higher.\n3. **Winning Conditions**:\n   - If your hand is closer to 21 than the dealer's without exceeding 21, you win.\n   - If your hand exceeds 21, you go bust and lose.\n   - If the dealer goes bust, you win automatically.\n\n## Features\n\n- Simulates a classic Blackjack game with standard rules.\n- Allows player decisions to \"Hit\" or \"Stand\" during gameplay.\n- Automatically handles dealer logic according to Blackjack rules.\n\n## Requirements\n\n- Python 3.x\n\n## How to Run\n\n1. Clone the repository:\n    ```bash\n    git clone https://github.com/your-username/blackjack-game.git\n    ```\n2. Navigate to the project directory:\n    ```bash\n    cd blackjack-game\n    ```\n3. Run the game:\n    ```bash\n    python blackjack.py\n    ```\n\n## Skills Learned\n\n- **Python Basics**: Use of variables, conditionals, loops, and functions.\n- **Object-Oriented Programming (OOP)**: Implementing classes and methods for game logic.\n- **Game Logic Implementation**: Managing game states, player decisions, and winning conditions.\n- **Randomization**: Utilizing Python’s random library to simulate card drawing.\n- **User Interaction**: Handling user input through the command line and providing dynamic feedback.\n- **Problem-Solving**: Structuring the game flow and implementing Blackjack rules.\n\n## Contributing\n\nContributions are welcome! Please fork the repository, create a branch for your feature or bug fix, and submit a pull request.\n\n#\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondrejhruby%2Fblackjack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fondrejhruby%2Fblackjack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fondrejhruby%2Fblackjack/lists"}