Question: The below is my code but it is not working. can you please fix it or make a new one. thank you 1. The basic

The below is my code but it is not working. can youplease fix it or make a new one. thank you 1. Thebasic rules of game A deck of poker cards are used. Forsimplicity, we have unlimited number of cards together, so we can generatea random card at a time without considering which cards have alreadydealt. The game here is to play as a player against theThe below is my code but it is not working. can you please fix it or make a new one. thank you

1. The basic rules of game A deck of poker cards are used. For simplicity, we have unlimited number of cards together, so we can generate a random card at a time without considering which cards have already dealt. The game here is to play as a player against the computer (the dealer). The aim of the game is to accumulate a higher points total than the dealer's, but without going over 21. The cards 2 to 10 have their face values as points. J, Q, and K are10 points each, and the Ace is either 1 point or points (player's choice). To simplify the matter, we consider that the Ace is 11 points only, unless you like to implement the option anyway. a) Betting and winning The player first place a bet. Let's assume our minimum bet is S10 and maximum - is $1000. b) Each hand will result in one of the following events for the player Lose-the player's bet is taken by the dealer. Win-the player wins as much as she bet. If she bet $10, she wins $10 from the dealer. Blackjack - the player wins 1.5 times the bet. With a bet of $10, s/he wins $15 from the dealer. Push-the hand is a draw. The player keeps his/her bet, neither winning nor losing money c) The start of the game At the start, the player and the dealer receive two cards cach. The player's cards are normally dealt face up (displayed), while the dealer has one face down (called the hole card) and one face up The best possible black ack hand is an opening deal of an Ace with any ten unt card. This is called a lack ack or a n ra 2 and he yer o g his automati ai sunless ed also has a blackjack. If a player and the dealer each have a blackjack, the result is a push. d) The player's turn 1. The basic rules of game A deck of poker cards are used. For simplicity, we have unlimited number of cards together, so we can generate a random card at a time without considering which cards have already dealt. The game here is to play as a player against the computer (the dealer). The aim of the game is to accumulate a higher points total than the dealer's, but without going over 21. The cards 2 to 10 have their face values as points. J, Q, and K are10 points each, and the Ace is either 1 point or points (player's choice). To simplify the matter, we consider that the Ace is 11 points only, unless you like to implement the option anyway. a) Betting and winning The player first place a bet. Let's assume our minimum bet is S10 and maximum - is $1000. b) Each hand will result in one of the following events for the player Lose-the player's bet is taken by the dealer. Win-the player wins as much as she bet. If she bet $10, she wins $10 from the dealer. Blackjack - the player wins 1.5 times the bet. With a bet of $10, s/he wins $15 from the dealer. Push-the hand is a draw. The player keeps his/her bet, neither winning nor losing money c) The start of the game At the start, the player and the dealer receive two cards cach. The player's cards are normally dealt face up (displayed), while the dealer has one face down (called the hole card) and one face up The best possible black ack hand is an opening deal of an Ace with any ten unt card. This is called a lack ack or a n ra 2 and he yer o g his automati ai sunless ed also has a blackjack. If a player and the dealer each have a blackjack, the result is a push. d) The player's turn

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!