subject

In this assignment we will work on the creation of a poker game. At a minimum your game must deal 2 hands of cards, and print out what poker hand each has. It must also determine which hand has won the
game - but breaking a tie will be for bonus points. For example, if both hands have 3 of a kind, that can be
considered a tie. If you want the bonus points write some code that determines which 3 of a kind is higher.
Here is the output from dealing a hand of cards:
Ace of Hearts
Ten of Clubs
Ace of Clubs
Eight of Hearts
Seven of Diamonds
2210
<>
0000011010002
You have a PAIR!
Use lots of small functions to help reduce the complexity of the code.
You must use the code from the video to get started, and you must use the following representation for a
poker hand:
make 2 arrays: suits in Hand[4], and facesin Hand[14].
suitsin Hand is 4 counters that represents how many hearts, clubs, diamonds, spades are in the hand. These
4 counters must add up to 5 for a hand of 5 cards. For example if you have 5 hearts in the hand of cards,
the array would have the values 5,0,0,0
facesin Hand is 13 counters, that represent how many two's three's, etc. you have in the hand. This must
also total 5. For example, if you have a pair of 3's, and three Kings's, this array would have the values
0,2,0,0,0,0,0,0,0,0,0,0
While dealing a hand of cards, keep a count of the suits in Hand, and faces in Hand.
I will include some code below that will help you to figure out what poker hand you have dealt.
This function will use the 2 arrays described above to determine if the hand has a flush, straight etc. have
not included the parameters. You will need to pass in the hand of cards and have the function pass back if
there is a flush, straight three of a kind, etc.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 17:30
Type the correct answer in the box. spell all words correctly. under which key category do the page up and page down keys fall? page up and page down keys fall under the keys category.
Answers: 3
question
Computers and Technology, 23.06.2019 06:00
Which statistical function in a spreadsheet you to see how far each number varies, on average, from the average value of the list?
Answers: 2
question
Computers and Technology, 23.06.2019 10:00
Hey i just logged on and one of the moderators deleted a bunch of my answers to questions, even though the answers were right and the people it doesn't make sense but if anyone wants to talk about anything just message me lol (this is super random lol)
Answers: 1
question
Computers and Technology, 24.06.2019 13:00
Which best describes the condition under which the unicode output is the same as plain text ?
Answers: 1
You know the right answer?
In this assignment we will work on the creation of a poker game. At a minimum your game must deal 2...
Questions
question
World Languages, 31.05.2020 13:57
question
Arts, 31.05.2020 13:57
Questions on the website: 13722367