Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New game]: Black_jackk #3982

Closed
1 task done
codewithishu opened this issue May 31, 2024 · 3 comments · Fixed by #4069
Closed
1 task done

[New game]: Black_jackk #3982

codewithishu opened this issue May 31, 2024 · 3 comments · Fixed by #4069
Assignees
Labels
level3 Adding new features New Game 🎮 This is the label that will be used on issues that are raising new game issue

Comments

@codewithishu
Copy link
Contributor

🎮 Game Request

Game logic and basic description

Blackjack is a popular casino card game with simple rules and strategic depth. Here’s an overview of the game logic and how it’s typically played:

Objective
The goal of blackjack is to beat the dealer by having a hand value closest to 21 without exceeding it.

Card Values
Number cards (2-10): Face value.

Face cards (J, Q, K): 10 points each.

Aces: Can be either 1 point or 11 points, depending on which value is more favorable for the hand.

Game Setup

Deck: Blackjack is usually played with one to eight decks of 52 cards.

Players: One or more players compete against the dealer.

Initial Deal: Each player and the dealer are dealt two cards. Players' cards are typically dealt face up, while the dealer has one card face up (the "upcard") and one card face down (the "hole card").

Player Actions

Players have several options for their turn:

Hit: Take another card to try to improve the hand’s total.

Stand: Keep the current hand and end the turn.

Double Down: Double the initial bet and receive exactly one more card.

Split: If the initial two cards have the same value, the player can split them into two separate hands, each with its own bet.

Surrender: Forfeit half the bet and end the turn (only available in some versions of the game).

Dealer Actions

Reveal: Once all players have completed their turns, the dealer reveals the hole card.

Hit/Stand: The dealer must follow specific rules:

Hit until the hand value is at least 17 (or 16, depending on house rules).

Stand on 17 or higher (in some variations, the dealer must hit on a "soft" 17, which is a hand containing an Ace valued as 11).

Point down the features

Game points

Card Values
Number Cards (2-10): These cards are worth their face value.

Example: A 5 is worth 5 points.

Face Cards (J, Q, K): These cards are each worth 10 points.

Example: A Queen is worth 10 points.

Aces (A): Aces can be worth either 1 point or 11 points, depending on which value benefits the hand most without causing the
hand to bust (exceed 21 points).

Example: An Ace can be worth 11 points if it doesn’t cause the hand to exceed 21; otherwise, it’s worth 1 point.

Example Hands and Their Point Values

Hand: 5♣, 7♦

Total Points: 5 + 7 = 12

Hand: K♠, 9♥

Total Points: 10 (for the King) + 9 = 19

Hand: A♠, 8♦

Total Points: 11 (for the Ace) + 8 = 19

Hand: A♣, 7♠, 3♦

Total Points: Ace can be 11 or 1. If 11, total is 21 (11 + 7 + 3). If 1, total is 11 (1 + 7 + 3), but 21 is the preferred value in this case.

Select program in which you are contributing

GSSoC24

Code of Conduct

@kunjgit kunjgit added level3 Adding new features New Game 🎮 This is the label that will be used on issues that are raising new game issue labels May 31, 2024
@codewithishu
Copy link
Contributor Author

/assign

@kunjgit
Copy link
Owner

kunjgit commented May 31, 2024

Hey @codewithishu !
Thank you for raising an issue 💗
You can self assign the issue by commenting /assign in comment 😀
Make sure you follow CODE OF CONDUCT and CONTRIBUTING GUIDELINES 🚀
Don’t Forget to ⭐ our GameZone🎮
Make sure you join our Discord🕹️

This was referenced May 31, 2024
@kunjgit
Copy link
Owner

kunjgit commented Jun 3, 2024

Hey @codewithishu ! Thank you so much for your raising the issue💗
It’s all yours, you can come anytime again and make some contributions! 🚀
Alone, we can do little, but together we can do so much! 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level3 Adding new features New Game 🎮 This is the label that will be used on issues that are raising new game issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants