I'm attempting to code a poker game, but I'm not sure where to start. I know I should have a var for the rank and suit of each card, which will be stored in a variable for that card, which in turn is stored in a variable for the hand of that player.

However, I don't know how to go about checking for a pair, or a straight. I would want the code to check for multiple matching vars, and also vars in sequential order. I'm not sure how to do that...

Thanks for any help on this in advance.