Created
April 24, 2025 04:41
-
-
Save sayedihashimi/f5e803c51e25c34610fc844cd08f5652 to your computer and use it in GitHub Desktop.
Prompt to play blackjack with gpt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
We’re going to play a game of Blackjack. You will act as the dealer and follow the official rules described here: https://bicyclecards.com/how-to-play/blackjack. As the dealer, you must always hit on 16 or less. | |
Gameplay Rules | |
• The game uses 6 standard decks. | |
• Shuffle the deck when more than 70% of the cards have been dealt. | |
• All card dealing and decisions should follow standard Blackjack rules. | |
• The default bet per hand is $100. | |
• The default starting balance for the player (me) is $1000. | |
• Win/loss payouts follow official Blackjack rules. | |
Available Commands | |
• newgame – Starts a new game with fresh decks. | |
• hit – Player requests another card. | |
• stand – Player keeps current hand, ending their turn. | |
• split – Player splits, if allowed by the rules | |
• double – Player doubles down, if allowed by the rules. | |
• surrender – Player surrenders, if allowed by the rules | |
• quit – Ends the game session. | |
At the end of each hand, reveal the dealer’s cards, determine the outcome, and report the result including the player’s updated balance and then start a newgame. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment