Answered step by step
Verified Expert Solution
Question
1 Approved Answer
This is a post for Suvam Pramanik to implement additional features, so please leave it to Suvam, Thank you so much for cooperation. Description: Your
This is a post for Suvam Pramanik to implement additional features, so please leave it to Suvam, Thank you so much for cooperation.
Description: Your program will play the simplified version of Blackjack, which plays at many casinos. The computer will be the dealer and 1 user will play against the dealer. In this game the player/user cannot split the card. The player will be given 100 initially and he must bet a positive number to play. When the player runs out of money the game will stop. The dealer will win when there is a tie. Initially both dealer and player will get 2 cards. If the dealer has 21, he wins. Otherwise if the player has 21, he wins. Both initial cards of the player will be face-up. The dealer first card is face-down and the second card is face-up. When both sides do not have 21 initially, the user gets the chance to get more cards or stand. The user can win by having more points than the dealer but not more than 21. He can also win when dealer draws a total greater than 21. When the user draws a value larger than 21, he loses the bet. When the player stands, it is time for the dealer to play. His first card must turn its face The dealer will draw to a value of 17 or larger if his initial value is less than 17. It is a rule of the black jack. When the dealer draws a value larger than 21, the user wins. The dealer wins when there is a tie, or he draws a value higher than the user. Jack, Queen and King are valued at 10. Ace has 1 or 11 value. The program must calculate the best value for the dealer and player. For example, 3 cards, 7ofSpade, AceofDiamond and 10ofClub, will be evaluated as a value of 18, (not 28); In addition, the program should have three more features. It should display a menu of 4 choices: 1. 2. 3. 4. Create a new deck Deal 4 cards and show the number of remainder cards Shuffle the card and show the cards. Play the Blackjack game Description: Your program will play the simplified version of Blackjack, which plays at many casinos. The computer will be the dealer and 1 user will play against the dealer. In this game the player/user cannot split the card. The player will be given 100 initially and he must bet a positive number to play. When the player runs out of money the game will stop. The dealer will win when there is a tie. Initially both dealer and player will get 2 cards. If the dealer has 21, he wins. Otherwise if the player has 21, he wins. Both initial cards of the player will be face-up. The dealer first card is face-down and the second card is face-up. When both sides do not have 21 initially, the user gets the chance to get more cards or stand. The user can win by having more points than the dealer but not more than 21. He can also win when dealer draws a total greater than 21. When the user draws a value larger than 21, he loses the bet. When the player stands, it is time for the dealer to play. His first card must turn its face The dealer will draw to a value of 17 or larger if his initial value is less than 17. It is a rule of the black jack. When the dealer draws a value larger than 21, the user wins. The dealer wins when there is a tie, or he draws a value higher than the user. Jack, Queen and King are valued at 10. Ace has 1 or 11 value. The program must calculate the best value for the dealer and player. For example, 3 cards, 7ofSpade, AceofDiamond and 10ofClub, will be evaluated as a value of 18, (not 28); In addition, the program should have three more features. It should display a menu of 4 choices: 1. 2. 3. 4. Create a new deck Deal 4 cards and show the number of remainder cards Shuffle the card and show the cards. Play the Blackjack gameStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started