Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I need this to be in Python, I'm having a significant amount of difficulty making this program and I really need to understand it. Thank
I need this to be in Python, I'm having a significant amount of difficulty making this program and I really need to understand it. Thank you
Greedy Coins Game Greedy Coins is a simple two player coin game, played by flipping 3 coincs. The first player to reach or surpass 20 is the winner. Each player takes turns flipping the 3 coins, they add to the pot with each turn, having to decide to flip again and increase the pot, or cash out. The risk being they could lose the amount they've accumulated into the pot. The Rules for each players flip 1. Flip the 3 coins a. If there are no heads (all tails), i. The pot gets set to zero ii. The other player goes to step 1. b. The number of heads is added to the pot. 2. User can choose to hold or flip again a. Choice FLIP. Return to Step 1 b. Choice HOLD i. Increment Player score by the pot amount. ii. Pot gets set to 0 ii. second player gets to flip and goes to Step1 Program Requirements: . Before each opponent begins flipping Output the score for the person and the computer Output the opponents whose turn is beginning and ask the user to hit enter to continue o o . With each flip of the coins o Output the result, and amount of the round pot. o If it's the users flip ask if they want to Flip again (F) or Hold ( H ). Your program should allow r, R, h or H as valid input. The Al will continue playing until the round pot is 8 or more o . Once a players pot is greater or equal to 20 then they have won, it will no longer ask if they want to keep playing Once there is a winner o Score totals are output along with who the winner was. User or Computer o Player is asked if they want to play again Y or N. Valid input should be y, Y, yes YES, or n, N, no, NO . When a new game starts the starting flip goes to the player that did not flip last. If the User flipped last in the previous game, then the computer flips first and vice versaStep 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