Question
I'm trying to write a java program for this and really don't know what to do. In a High-Low game you take a regular poker
I'm trying to write a java program for this and really don't know what to do.
In a High-Low game you take a regular poker deck of 52 plating cards, shuffle them, then the players take consecutive cards off the top of the deck and compare them. The higher face value wins, with Ace being the top card. If the face values are equal then a Spade wins over a Diamond which wins over a Club which wins over a Heart. For now, we will simply use a random number generator to create a card (basically, a number for face value and a number for the face type) for each player. Then you will have the program determine the winner of the game or a draw. It is possible that both players could have exactly the same card, which would not happen in a real game. So there is also a possibility of a draw. An example would look like:
Player 1: 7 H Player 2
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