Question: HI, I'm taking python class, can anyone help me in this please? Again its on python Please a tr Page 1 Homework 9B: BlackJack Simulation

HI, I'm taking python class, can anyone help me in this please?

Again its on python Please

HI, I'm taking python class, can anyone help me in this please?

a tr Page 1 Homework 9B: BlackJack Simulation Twixt 2 Players Program9-1 simulates pulling cards from a deck and Program9-1B see attached simulates a single player playing BlackJack against a dealer. Enhance this approach by creating a BlackJack game between two virtual players. The cards have the values given in Program9-1 and Program9-1B, with the following caveat: o Aces will take the value of 11 as long as the sum total ofthe cards in a person's hand does not exceed 21 o If the sum total does exceed 21, the Ace will take the value of 1 Call your program Yo Every time a new game is begun your name should appear first, at the top, showing whose casino the players are playing at Home Awork QR. RIarklark Sim atinn T AIivt 2 Dla Arc fosoft oint Page 2 Homework 9B: BlackJack Simulation Twixt 2 Players Here are the rules: o The program should deal cards to each player until one player's hand is worth more than 21 points, o When that happens, the other player is the winner. o When one person attains a score of exactly 21 points, that person will receive no further draws. The other player will continue to receive draws until (s)he exceeds 21 or gets the score of 21 o If both players get a score of 21, then the outcome is a Tie Score. o It is possible that both players' hands will simultaneously exceed 21 points, in which case neither player wins. o Remember, if a player is dealt an ace, the program should decide the value of the card according to the following rule: The ace will be worth 11 points, unless that makes the player's hand exceed 21 points. In that case, the ace will be worth 1 point. 5:52 PM a tr Page 1 Homework 9B: BlackJack Simulation Twixt 2 Players Program9-1 simulates pulling cards from a deck and Program9-1B see attached simulates a single player playing BlackJack against a dealer. Enhance this approach by creating a BlackJack game between two virtual players. The cards have the values given in Program9-1 and Program9-1B, with the following caveat: o Aces will take the value of 11 as long as the sum total ofthe cards in a person's hand does not exceed 21 o If the sum total does exceed 21, the Ace will take the value of 1 Call your program Yo Every time a new game is begun your name should appear first, at the top, showing whose casino the players are playing at Home Awork QR. RIarklark Sim atinn T AIivt 2 Dla Arc fosoft oint Page 2 Homework 9B: BlackJack Simulation Twixt 2 Players Here are the rules: o The program should deal cards to each player until one player's hand is worth more than 21 points, o When that happens, the other player is the winner. o When one person attains a score of exactly 21 points, that person will receive no further draws. The other player will continue to receive draws until (s)he exceeds 21 or gets the score of 21 o If both players get a score of 21, then the outcome is a Tie Score. o It is possible that both players' hands will simultaneously exceed 21 points, in which case neither player wins. o Remember, if a player is dealt an ace, the program should decide the value of the card according to the following rule: The ace will be worth 11 points, unless that makes the player's hand exceed 21 points. In that case, the ace will be worth 1 point. 5:52 PM

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!