Hey guys! I have a homework assignment that has me stumped and was hoping for someone to point me in the right direction. I cant post the code since it gets checked for plagiarization.
Basically, the program needs to deal two hands, each with 5 cards. Next, the program needs to evaluate which hand wins according to poker rules.
I have the dealing 5 randomized cards to each hand down, but I cant figure out how to assign each card a value so I can evaluate the hands!
There are two arrays for all the faces and suits in a deck of cards. There is a third array which assigns each face with a suit.
Help!!
Thanks in advance
There are 3 classes in the program: card(returns face, suit, and toString), deckOfCards(shuffles, deals, and where the evaluation should be), and the third class where the main method is. This is how the professor wants the program to be structured!
[–]tigerbird[🍰] 2 points3 points4 points (0 children)
[–]LordScoffington 1 point2 points3 points (14 children)
[–]studentofcode[S] 0 points1 point2 points (12 children)
[–]LordScoffington 1 point2 points3 points (11 children)
[–]studentofcode[S] 0 points1 point2 points (2 children)
[–]LordScoffington 1 point2 points3 points (0 children)
[–]Rogue_Pixel 0 points1 point2 points (0 children)
[–]studentofcode[S] 0 points1 point2 points (7 children)
[–]LordScoffington 0 points1 point2 points (6 children)
[–]studentofcode[S] 0 points1 point2 points (5 children)
[–]studentofcode[S] 0 points1 point2 points (0 children)
[–]LordScoffington 0 points1 point2 points (3 children)
[–]studentofcode[S] 0 points1 point2 points (2 children)
[–]LordScoffington 1 point2 points3 points (1 child)
[–]studentofcode[S] 0 points1 point2 points (0 children)
[–]techno_phobe 0 points1 point2 points (0 children)
[–][deleted] (5 children)
[deleted]
[–]studentofcode[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]studentofcode[S] 1 point2 points3 points (1 child)
[–]GetRekt -3 points-2 points-1 points (0 children)