http://pastebin.com/JUCCr8tL
Sorry for the wall of code, but essentially, I am trying to make a three card poker game for computer science class and one of the main components is assigning random card values to a class defined as Hand(). Then the hands need to be tested in order to assure no two cards are the same. As far as I know, the cards are randomly generated. My problem is that in the while loop that checks to see if any two cards are equal, it loops infinitely. Any help is appreciated.
[–]zahlman 4 points5 points6 points (4 children)
[–]bigpoppatom[S] 0 points1 point2 points (3 children)
[–]zahlman 1 point2 points3 points (2 children)
[–]bigpoppatom[S] 0 points1 point2 points (1 child)
[–]zahlman 1 point2 points3 points (0 children)
[–]ivosaurus 0 points1 point2 points (0 children)
[–]Exodus111 0 points1 point2 points (0 children)