Question
In a Java program High Low The game is played with cards. The rank of the cards from low to high is as follows: A,2,3,4,5,6,7,8,9,10,
In a Java program
High Low
The game is played with cards. The rank of the cards from low to high is as follows: A,2,3,4,5,6,7,8,9,10, Jack, Queen, King. The objective of the game is to guess whether the next card is going to be higher or lower than the current card. Assume the casino is using one deck for High Low, so no duplicates of cards can be drawn in the same game.
Gameplay as follows:
The user makes a bet, the casino matches the amount to create the pot
If this is not the first round, the new pot is combined with the previous pot
A card is drawn and shown to the user, the user guesses if the next card will be high or low. Ties are considered high
If incorrect, the casino wins
If the user is correct, ask if they want to continue or if they want to stop.
If the user continues, repeat steps 1 through 4
If the user stops, the user wins
The winner wins the pot and adds the money to their balance
If the user won and guessed correctly at least 4 times, they win the pot and an additional 50 from the casino
Step 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