Original Post
Hi all, I'm currently making a simple console-based Poker game in Java, and I'm having trouble when it comes time to check hands to determine the winner. Anybody have any suggestions how I should go about checking for 2 of a kind, 3 of a kind, 2 pair, flush, etc? I have some basic ideas, but they involve running tons of different checks and hundreds of lines of code (i.e. looping through the hand to see how many of each suit/value is there, etc). Am I on the right track?