jitacm / -30DaysDevChallenge-

Welcome to the 30DayDevChallenge repository! This repository is dedicated to a month-long coding challenge designed to help developers of all levels enhance their skills through daily coding tasks and projects.
19 stars 28 forks source link

Blackjack_Game/30_Days_of_python #310

Open pratikshabhujade opened 3 months ago

pratikshabhujade commented 3 months ago

This Python script implements a simple console-based Blackjack game using basic object-oriented programming concepts and text-based UI. Players compete against a dealer to achieve a hand value as close to 21 as possible without exceeding it. The game involves dealing cards from a standard deck, calculating scores, and handling user decisions like hitting or standing. The dealer follows fixed rules for drawing additional cards, creating a balanced and interactive game experience.

Features:

  1. Card Representation: Cards are represented using a Card class, which includes card faces (e.g., 'A', '2', '3', etc.), values, and symbols for each suit.
  2. Game Play: Players start with two cards and can choose to hit (draw additional cards) or stand (keep their current hand). The dealer also plays by specific rules.
  3. Score Calculation: Handles the adjustment of scores for Aces (value can be 1 or 11) and updates scores dynamically as cards are dealt.
  4. Card Display: Displays cards in a text-based format that shows both visible and hidden cards for the dealer. Game Outcome: Determines the winner based on the final scores, handling cases where either the player or dealer busts or achieves a Blackjack.

https://github.com/user-attachments/assets/07d83446-b3b4-4dbf-9725-184f39553754

github-actions[bot] commented 3 months ago

Thank you for creating this issue! πŸŽ‰

We'll look into it as soon as possible. In the meantime, please make sure to provide all the necessary details and context. If you have any questions or additional information, feel free to add them here. Your contributions are highly appreciated! 😊

You can also check our [CONTRIBUTING.md] for guidelines on contributing to this Domain.