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_Java #330 #358

Closed AnshNikhare closed 3 months ago

AnshNikhare commented 3 months ago

Issue Number: #330

Blackjack Game in Java

Project Proposal

Overview

This project is a command-line implementation of the classic card game Blackjack, also known as 21. The game allows a single player to compete against a dealer, with the objective of achieving a hand value as close to 21 as possible without exceeding it. The game incorporates fundamental Blackjack rules and provides a text-based graphical representation of the cards to enhance the user experience.

Objectives

Features

  1. Card Representation:

    • Each card is represented by its suit and rank.
    • Cards are displayed in a graphical format using ASCII art.
  2. Game Play:

    • Initial dealing of two cards each for the player and dealer.
    • Player actions: Hit (draw a card) or Stand (end turn).
    • Dealer actions: Automatically draws cards until the hand value is at least 17.
  3. Score Calculation:

    • Calculate hand values considering Ace as 1 or 11.
    • Handle cases where the hand value exceeds 21 (bust).
  4. Card Display:

    • Print cards in the terminal with a graphical representation.
    • Show the dealer's cards with one card hidden during the player's turn.
  5. Game Outcome:

    • Determine and display the result of the game (Player wins, Dealer wins, or Tie).

Technologies Used

github-actions[bot] commented 3 months ago

Thank you for submitting your pull request! 🙌 We'll review it as soon as possible. In the meantime, please ensure that your changes align with our [CONTRIBUTING.md]. If there are any specific instructions or feedback regarding your PR, we'll provide them here. Thanks again for your contribution! 😊